I have a form where you can upload an XML file and my PHP file parses and imports the file into a database. When I post a 50 mb or less file, it works. But when I post something a bit higher, it returns a "404 Page not found" from IIS. Why is this? Should it return a 500 error instead?..
Could not find anything in the Event Viewer and no error is returned or logged in the PHP error log. I'm lost.
Windows Server 2012
PHP 7.1.1
IIS Version 6.2 (Build 9200)
I had to increase the
maxRequestLength
andmaxAllowedContentLength
via the configuration editor in IIS.These values can be found here:
To find these values in IIS:
Source: https://stackoverflow.com/a/40085473/3208151