Attachment Size Limitations #213

Closed
opened 2026-02-04 17:42:44 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @N3V3N on GitHub (Nov 28, 2016).

How can I increase the file size limitation on attachments? I've already increased the upload limits in php.ini but anything more than a couple megabytes is still being rejected. Is there a framework related config I need to edit? Thanks in advance.

Originally created by @N3V3N on GitHub (Nov 28, 2016). How can I increase the file size limitation on attachments? I've already increased the upload limits in php.ini but anything more than a couple megabytes is still being rejected. Is there a framework related config I need to edit? Thanks in advance.
OVERLORD added the 🐕 Support📖 Docs Update labels 2026-02-04 17:42:44 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Nov 29, 2016):

Hi @N3V3N, There's nothing at app or framework level that should limit upload size. Have you updated both post_max_size and upload_max_filesize variables in the php.ini file?

If so it could possibly be something at web-server level. Are you using Nginx, Apache or something else?

@ssddanbrown commented on GitHub (Nov 29, 2016): Hi @N3V3N, There's nothing at app or framework level that should limit upload size. Have you updated both `post_max_size` and `upload_max_filesize` variables in the php.ini file? If so it could possibly be something at web-server level. Are you using Nginx, Apache or something else?
Author
Owner

@N3V3N commented on GitHub (Nov 29, 2016):

I figured it out, thank you for pointing me in the right direction Dan. I also appreciate all your hard work on developing this fantastic documentation solution.

For posterity, I edited /etc/nginx/nginx.conf and added the following line:
client_max_body_size 100m
After which I was able to successfully upload the files.

@N3V3N commented on GitHub (Nov 29, 2016): I figured it out, thank you for pointing me in the right direction Dan. I also appreciate all your hard work on developing this fantastic documentation solution. For posterity, I edited /etc/nginx/nginx.conf and added the following line: `client_max_body_size 100m` After which I was able to successfully upload the files.
Author
Owner

@ssddanbrown commented on GitHub (Dec 3, 2016):

@N3V3N Awesome, I'm glad you found the fix.

I'll keep this issue open for now to remind me to add a page to the docs with details of changing attachment size limits.

@ssddanbrown commented on GitHub (Dec 3, 2016): @N3V3N Awesome, I'm glad you found the fix. I'll keep this issue open for now to remind me to add a page to the docs with details of changing attachment size limits.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#213