Large Images Cause Book Creation to Fail #4578

Open
opened 2026-02-05 09:05:50 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @aiquiti on GitHub (Apr 9, 2024).

Describe the Bug

If you try uploading a Cover image when creating a book, while it may show a preview making the user think that it uploaded successfully, it will fail to save and not provide any error or feedback to user. It doesn't seem to leave any error within logs as well.

I tested on two different instances (one used daily, the other more of a clean sandbox), both running on Ubuntu 22.04, with current latest version of BookStack (v24.02.3).

Uploading with a scaled down version of the image worked without issue.

Steps to Reproduce

  1. Create a book and enter a name for it
  2. Upload large photo (for my testing, I had a photo sized 5021 x 3370)
  3. Hit Save
  4. You will return to home screen without it saving or providing any feedback on it failing to save

Expected Behaviour

It would be expected either for it to throw an error stating that the picture is too large to upload, or otherwise scale the photo down as it does for the preview.

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

v24.02.3

Originally created by @aiquiti on GitHub (Apr 9, 2024). ### Describe the Bug If you try uploading a Cover image when creating a book, while it may show a preview making the user think that it uploaded successfully, it will fail to save and not provide any error or feedback to user. It doesn't seem to leave any error within logs as well. I tested on two different instances (one used daily, the other more of a clean sandbox), both running on Ubuntu 22.04, with current latest version of BookStack (v24.02.3). Uploading with a scaled down version of the image worked without issue. ### Steps to Reproduce 1. Create a book and enter a name for it 2. Upload large photo (for my testing, I had a photo sized 5021 x 3370) 3. Hit Save 4. You will return to home screen without it saving or providing any feedback on it failing to save ### Expected Behaviour It would be expected either for it to throw an error stating that the picture is too large to upload, or otherwise scale the photo down as it does for the preview. ### Screenshots or Additional Context _No response_ ### Browser Details _No response_ ### Exact BookStack Version v24.02.3
OVERLORD added the 🐛 Bug label 2026-02-05 09:05:50 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4578