Hi, I've been working on a PHP upload system, i currently have one working, but I'm struggling when it comes to large files. I've tested up to 47mb, this works just fine however when i try uploading a file of about 72mb i get an error.
Now i've been doing a lot of research around the internet to try and find out what settings i need to be changing, on various websites i've been told different things, change settings in the php.ini file, change web.config settings and so on. Each web site i find help on seems to have one or two things different from the last so it seems implossible to find a full list of settings that need to be changed or checked when developing a system that needs to upload large files.
So the main question here is does anyone have a list of settings (PHP and Windows Server settings) that need to be tweaked in order to do this? That would be a HUGE help for me and i'm sure thousands of people after me.
Secondly, i have changed a number of settings and can now upload up to about 47mb. But like i said with a 72mb file, the server comes back with a 500 error. Does anyone have any idea what the problem can be?
here are some of the settings that i think you would need to see:
php.ini
- upload_max_filesize: 200M
- post_max_size: 200M
- memory_limit: 200M
- max_file_uploads: 20
- max_execution_time: 3600
- max_input_time: 3600
- file_uploads: 1
- default_socket_timeout: 3600
Windows settings
<?xml version="1.0" encoding="UTF-8"?><configuration>
<system.web>
<httpRuntime maxRequestLength="120000000" executionTimeout="3600" />
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="120000000"/>
</requestFiltering>
</security>
</system.webServer>
</configuration>
i'm not sure if this error is being of execution time or is it's a cap somewhere on the amount of data..... Is there a way of me outputting the values of some of the windows server settings?
Thanks for the help.