File upload documentation update for php memory limit #1988

Closed
opened 2026-02-05 02:24:33 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @aarchijs on GitHub (Dec 22, 2020).

I was trying to upload file larger than 400MB, but I got HTTP500 error.
Configuration was made according to https://www.bookstackapp.com/docs/admin/upload-config/ documentation.

After some digging I found that PHP script memory usage should be increased aswell to increase max file size for uploads.

I think that additional configuration information about this should be included in documentation.
within php.ini

Default is 128M.
Maximum amount of memory a script may consume (128MB)
memory_limit = 128M

By increasing memory limit max file upload size also increases.

Originally created by @aarchijs on GitHub (Dec 22, 2020). I was trying to upload file larger than 400MB, but I got HTTP500 error. Configuration was made according to https://www.bookstackapp.com/docs/admin/upload-config/ documentation. After some digging I found that PHP script memory usage should be increased aswell to increase max file size for uploads. I think that additional configuration information about this should be included in documentation. within php.ini Default is 128M. Maximum amount of memory a script may consume (128MB) memory_limit = 128M By increasing memory limit max file upload size also increases.
OVERLORD added the 📖 Docs Update label 2026-02-05 02:24:33 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jan 2, 2021):

Thanks @aarchijs for raising this.

I have now updated the documentation to advise that the memory limit may also need to be changed for larger files.

@ssddanbrown commented on GitHub (Jan 2, 2021): Thanks @aarchijs for raising this. I have now updated the documentation to advise that the memory limit may also need to be changed for larger files.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1988