Skip to content

Upload fails after increasing Nginx file size limit (previously 413 error) #6112

@eliotschmitt

Description

@eliotschmitt

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

I recently updated my Nginx configuration to increase the allowed file upload size, as I was previously encountering a 413 Request Entity Too Large error when uploading a book cover image.

After increasing the limit (using client_max_body_size), the 413 error is resolved. However, I am now encountering a different error when attempting to upload the same image.

Steps to reproduce:

Go to the book creation/edit page
Upload an image as the "cover" (couverture)
Submit the form

Expected behavior:
The image should upload successfully and be saved as the book cover.

Actual behavior:
An error 500 occurs after submission.

Exact BookStack Version

v25.12.3

Log Content


Hosting Environment

VMware Photon OS

docker-composse.yml
services:
bookstack:
image: lscr.io/linuxserver/bookstack:latest

bookstack-db:
image: mariadb:11

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions