Issue uploading files #1428

Closed
opened 2026-02-05 00:52:18 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @edwardbattye on GitHub (Oct 29, 2019).

When trying to upload a file however over thumbnail and get error "405 not allowed error". Using nginx. Checked file permissions and they are correct, assuming this is a webserver issue. In the nginx log get following error
"2019/10/29 10:41:20 [error] 21713#21713: *12 open() "/var/www/bookstack/public/attachments/get/page/55" failed (2: No such file or directory), client: 10.65.20.97, server: www.wiki.xxx.co.uk, request: "GET /attachments/get/page/55 HTTP/1.1", host: "wiki.xxx.co.uk", referrer: "https://wiki.xxx.co.uk/books/ed/draft/55"
"

  • Exact BookStack Version (Found in settings): BookStack v0.26.2
  • PHP Version: PHP 7.0.33-0ubuntu0.16.04.7
  • Hosting Method (Nginx/Apache/Docker): Nginx
Originally created by @edwardbattye on GitHub (Oct 29, 2019). When trying to upload a file however over thumbnail and get error "405 not allowed error". Using nginx. Checked file permissions and they are correct, assuming this is a webserver issue. In the nginx log get following error "2019/10/29 10:41:20 [error] 21713#21713: *12 open() "/var/www/bookstack/public/attachments/get/page/55" failed (2: No such file or directory), client: 10.65.20.97, server: www.wiki.xxx.co.uk, request: "GET /attachments/get/page/55 HTTP/1.1", host: "wiki.xxx.co.uk", referrer: "https://wiki.xxx.co.uk/books/ed/draft/55" " - Exact BookStack Version (Found in settings): BookStack v0.26.2 - PHP Version: PHP 7.0.33-0ubuntu0.16.04.7 - Hosting Method (Nginx/Apache/Docker): Nginx
Author
Owner

@edwardbattye commented on GitHub (Oct 29, 2019):

Solved, was this in the nginx config file:
location ^~ /attachments {
mp4;
mp4_buffer_size 1m;
mp4_max_buffer_size 5m;
}

@edwardbattye commented on GitHub (Oct 29, 2019): Solved, was this in the nginx config file: location ^~ /attachments { mp4; mp4_buffer_size 1m; mp4_max_buffer_size 5m; }
Author
Owner

@ssddanbrown commented on GitHub (Oct 30, 2019):

Thanks for confirming you found a solution!

@ssddanbrown commented on GitHub (Oct 30, 2019): Thanks for confirming you found a solution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1428