Essential settings for uploading large file

Assuming we need to upload 20MB files via script on website, you need to make the following necessary changes.

ASP
settings:
1) write permission to IUSR
2)
AspMaxRequestEntityAllowed = 204800000  – global settings in metabase.xml
Connectiontimeout = 1000 ~ 3000 seconds  – iis entry
AspBufferingLimit – global settings in metabase.xml
in iis
4) Script timeout = 270 seconds – iis entry / server.scripttimeout = 12000 – in code

PHP
settings:
1) write permission to IUSR & Network
2)
upload_max_filesize = 20M
max_input_time = 3000
max_execution_time = 3000
memory_limit = 30Min
file_uploads = On
post_max_size
in php.ini
3) Connectiontimeout = 3000 seconds in iis
4) maxAllowedContentLength = 26214400 for iis7      

ASP.NET
settings:
1) write permission to Network Service
2)
executionTimeout="1200"
maxRequestLength="20480" 
enable="true"
in httpRuntime tag in web.config
http://msdn.microsoft.com/en-us/library/e1f13641(VS.80).aspx

problem when uploading large file
considering memory: http://www.motobit.com/help/scptutl/pa31.htm
pool will be recycled during uploading

Share

- has written 121 posts.


Leave a Reply

You must be logged in to post a comment.