Image upload failed #692

Closed
opened 2026-02-04 21:53:32 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @andresilva-cc on GitHub (May 25, 2018).

When I try to upload an image to use as a book cover, I get this error:
2018-05-25_121344

Which translating to english, is something like that:

The file upload destination path (/uploads/images/cover/2018-05-May/4LI8jmX9g0Tkycaf-header.png) does not have write permission. Make sure that it has write rights to the server.

  • BookStack Version: 0.21
  • PHP Version: 7.2.4
  • MySQL Version: 10.2.14-MariaDB

I already gave permission to apache:apache over the project folder (not just the public folder)

Originally created by @andresilva-cc on GitHub (May 25, 2018). When I try to upload an image to use as a book cover, I get this error: ![2018-05-25_121344](https://user-images.githubusercontent.com/15927886/40552169-55fbc20a-6015-11e8-95f4-28b8fa59d042.jpg) Which translating to english, is something like that: > The file upload destination path (/uploads/images/cover/2018-05-May/4LI8jmX9g0Tkycaf-header.png) does not have write permission. Make sure that it has write rights to the server. * BookStack Version: 0.21 * PHP Version: 7.2.4 * MySQL Version: 10.2.14-MariaDB I already gave permission to apache:apache over the project folder (not just the public folder)
OVERLORD added the 🐕 Support label 2026-02-04 21:53:32 +03:00
Author
Owner

@ssddanbrown commented on GitHub (May 26, 2018):

Hi @DeehSlash, Can you confirm the OS you're using to host BookStack?

Would be good to be sure that apache is the correct user in that case.

@ssddanbrown commented on GitHub (May 26, 2018): Hi @DeehSlash, Can you confirm the OS you're using to host BookStack? Would be good to be sure that `apache` is the correct user in that case.
Author
Owner

@andresilva-cc commented on GitHub (May 26, 2018):

@ssddanbrown CentOS 7

@andresilva-cc commented on GitHub (May 26, 2018): @ssddanbrown CentOS 7
Author
Owner

@ssddanbrown commented on GitHub (May 27, 2018):

Potentially SELinux preventing write? Not really familiar with SELinux or CentOS myself though

@ssddanbrown commented on GitHub (May 27, 2018): Potentially SELinux preventing write? Not really familiar with SELinux or CentOS myself though
Author
Owner

@andresilva-cc commented on GitHub (May 27, 2018):

SELinux is disabled. I’ll run some tests tomorrow and then let you know here. Thanks for now.

@andresilva-cc commented on GitHub (May 27, 2018): SELinux is disabled. I’ll run some tests tomorrow and then let you know here. Thanks for now.
Author
Owner

@andresilva-cc commented on GitHub (May 28, 2018):

Strange... I applied chown again and now it is working.

@andresilva-cc commented on GitHub (May 28, 2018): Strange... I applied chown again and now it is working.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#692