Thumbnail cannot be displayed when uploading pictures #5279

Closed
opened 2026-02-05 09:53:42 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @archinfoto on GitHub (May 11, 2025).

Describe the Bug

Image
When I upload a picture, the thumbnail does not appear.

Image
I found that the folder permissions are not 755.

Steps to Reproduce

See Describle

Expected Behaviour

The permissions were not set correctly when generating the image folder.

Screenshots or Additional Context

No response

Browser Details

google chrome

Exact BookStack Version

V25.02.4

Originally created by @archinfoto on GitHub (May 11, 2025). ### Describe the Bug ![Image](https://github.com/user-attachments/assets/bb1aaedf-c57d-42b6-9ea6-a37fd94911d2) When I upload a picture, the thumbnail does not appear. ![Image](https://github.com/user-attachments/assets/2a47fcd9-d503-40a0-84d5-6e40c4db1733) I found that the folder permissions are not 755. ### Steps to Reproduce See Describle ### Expected Behaviour The permissions were not set correctly when generating the image folder. ### Screenshots or Additional Context _No response_ ### Browser Details google chrome ### Exact BookStack Version V25.02.4
OVERLORD added the 🐛 Bug🏭 Back-End labels 2026-02-05 09:53:42 +03:00
Author
Owner

@ssddanbrown commented on GitHub (May 11, 2025):

Thanks for raising @archinfoto,
Looks to be due to the changes made in #5601 which were part of BookStack v25.02.3.
Probably won't affect many instances where php & the web-server run as the same user, but will be one to patch soon as there's also going to be many instances with a multi-user setup like the one here. Will create a new patch release milestone and assign this to it.

Think we'll need to perform the folder creation manually so we have control over the directory permissions (as we have done for file creation).

@ssddanbrown commented on GitHub (May 11, 2025): Thanks for raising @archinfoto, Looks to be due to the changes made in #5601 which were part of BookStack v25.02.3. Probably won't affect many instances where php & the web-server run as the same user, but will be one to patch soon as there's also going to be many instances with a multi-user setup like the one here. Will create a new patch release milestone and assign this to it. Think we'll need to perform the folder creation manually so we have control over the directory permissions (as we have done for file creation).
Author
Owner

@tobast commented on GitHub (May 16, 2025):

Hello,

I am indeed affected by this bug on a fresh install at v25.02.4. Thank you for your quick handling of this issue!

Just as a side note, this probably affects many deployments using php-fpm with a pool dedicated to the application, which is usually considered a good practice.

@tobast commented on GitHub (May 16, 2025): Hello, I am indeed affected by this bug on a fresh install at v25.02.4. Thank you for your quick handling of this issue! Just as a side note, this probably affects many deployments using `php-fpm` with a pool dedicated to the application, which is usually considered a good practice.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5279