[Support Request]: Upload Filesize Limit not working #2529

Closed
opened 2026-02-05 04:25:07 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @iParisienne on GitHub (Dec 14, 2021).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

Hello,

I cannot seem to be able to upload anything bigger than around 20MB (Initial Size i've set in php.ini.)
I've been since trying to increase both
upload_max_filesize (512M) and post_max_size (600M) with no success.
I've checked with phpinfo() that I'm editing the correct php.ini, the values I've changed appeared correct.
I restarted the webserver (IIS) with no change.

The error I'm getting is "The server does not allow uploads of this file size".

First time i've increased filesize from default to around 20mb it worked without any problems.

Exact BookStack Version

v21.08.5

Log Content

No response

PHP Version

7.4.13

Hosting Environment

Windows Server 2019 Standard, IIS

Originally created by @iParisienne on GitHub (Dec 14, 2021). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario Hello, I cannot seem to be able to upload anything bigger than around 20MB (Initial Size i've set in php.ini.) I've been since trying to increase both _upload_max_filesize_ (512M) and _post_max_size_ (600M) with no success. I've checked with phpinfo() that I'm editing the correct php.ini, the values I've changed appeared correct. I restarted the webserver (IIS) with no change. The error I'm getting is "The server does not allow uploads of this file size". First time i've increased filesize from default to around 20mb it worked without any problems. ### Exact BookStack Version v21.08.5 ### Log Content _No response_ ### PHP Version 7.4.13 ### Hosting Environment Windows Server 2019 Standard, IIS
OVERLORD added the 🐕 Support label 2026-02-05 04:25:07 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Dec 14, 2021):

Hi @iParisienne,
Unfortunately I'm not too familiar with Windows/IIS environments.

  • Does PHP run as it's own process and hence may need to be restarted to pick up config changes?
  • Is there any settings in IIS itself that may need to be changed? Most webservers will enforce this at their own level.
  • Have you configured the limit within BookStack itself? Described here under "Changing Upload Limits > BookStack"
@ssddanbrown commented on GitHub (Dec 14, 2021): Hi @iParisienne, Unfortunately I'm not too familiar with Windows/IIS environments. - Does PHP run as it's own process and hence may need to be restarted to pick up config changes? - Is there any settings in IIS itself that may need to be changed? Most webservers will enforce this at their own level. - Have you configured the limit within BookStack itself? [Described here](https://www.bookstackapp.com/docs/admin/upload-config/) under "Changing Upload Limits > BookStack"
Author
Owner

@iParisienne commented on GitHub (Dec 15, 2021):

Hello,

  • PHP runs in cunjunction with IIS/FastCGI, so restarting it can be done via "iisreset", which basically restarts IIS itself, thus PHP along with it.
  • AFAIK no, because last time I've changed the Upload limit, no settings had to be altered in IIS itself.
  • I tried to do that with the same result. But AFAIK it should only work with v21.11+ and I have v21.08.5 installed.
    But I did try to include it into the "Custom HTML Head Content" Section via the following:
    <script> // Set the file upload limit to 1.5GB. // The value is defined in MB. window.uploadLimit = 1500; </script>

EDIT: Found the Issue. There was indeed an Option in IIS where I had to increase the desired amount.
Under "Request Filtering" > "Edit Feature Settings" the amount was set to 30MB, which explained why my first increase from default (2MB) to around 20MB worked without any necessary change in IIS. After changing this to my desired approx. 500MB it worked.

@iParisienne commented on GitHub (Dec 15, 2021): Hello, - PHP runs in cunjunction with IIS/FastCGI, so restarting it can be done via "iisreset", which basically restarts IIS itself, thus PHP along with it. - AFAIK no, because last time I've changed the Upload limit, no settings had to be altered in IIS itself. - I tried to do that with the same result. But AFAIK it should only work with v21.11+ and I have v21.08.5 installed. But I did try to include it into the "Custom HTML Head Content" Section via the following: `<script> // Set the file upload limit to 1.5GB. // The value is defined in MB. window.uploadLimit = 1500; </script>` **EDIT:** Found the Issue. There was indeed an Option in IIS where I had to increase the desired amount. Under "Request Filtering" > "Edit Feature Settings" the amount was set to 30MB, which explained why my first increase from default (2MB) to around 20MB worked without any necessary change in IIS. After changing this to my desired approx. 500MB it worked.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2529