Can't upload images
- BookStack Version: v0.20.3
- PHP Version: 7.2
- MySQL Version: 5.7
Expected Behavior
Upload images in drag and drop
Current Behavior
Trying to upload an image results with:
File path /uploads/images/user/2018-04-Apr/Screenshot-from-2018-04-08-02-52-09.png could not be uploaded to. Ensure it is writable to the server. with error 500
Steps to Reproduce
Drag and drop an image to upload
Is your uploads directory writable by the webserver?
You need to chown www-data:www-data -R bootstrap/cache public/uploads storage && chmod -R 755 bootstrap/cache public/uploads storage in your bookstack directory after installation for uploads to work.
I solved it. I thought I should just change ownership of storage/uploads after turning secure image uploads on.
But it was going to upload on public/uploads anyway.
Thanks @watschi for your help.
Glad to hear this issue is solved, Will go ahead and close this issue.
@ssddanbrown just a small question?
What does turning secure image upload on do?
Because it was uploading to public folder before and after turning this feature
@watschi @ssddanbrown Hi. Sorry for pinging again but I got another issue in uploading images. Now while observing my upload in network tab, I see it canceled. Without any error log on Nginx or php. I thought that should be upload size limit (because I can upload smaller sizes) but couldn't fix it. My another guess is that Dropzone has a timeout, and since the file couldn't upload in that time it gets canceled. Please note I can upload smaller size files. But this one is around 5M and no luck. Thank you.
Not working i am facing same issue in server as well as in container with s3. And another thing is i am getting the file upload error but files are uploaded to s3 :ok_woman: :ok_woman: :ok_woman:
Same here, not working with s3 when running on docker