File uploads over http (using a form post) is limited by the amount of memory on your server. The protocol uploads the file to memory first, then your scripts transfer it from memory to disk, or whatever your scripts decide to do with it. So, if you only have 25 meg available ram, that would be the maximum file size you can upload.
We ran into this a while back and have yet to find another solution (besides bumping the memory on the server). If you know of something to address this, let me know. That still doesn't explain why a 40 meg file would time out after only 30 seconds though. I'd suggest examining your CF application logs, or your server logs (application event log in NT). They might offer some insight. The problem I described above logs an NT error indicating "Out of resources". Hope that helps. Shawn Grover -----Original Message----- From: Jeff Stone [mailto:[EMAIL PROTECTED]] Sent: Friday, November 02, 2001 11:26 AM To: CF-Talk Subject: OT: File Upload Question Does anyone know if there is a maximum file size limit that the HTTP protocol applies or that IIS applies by default when doing a file upload? I have a site where clients upload video files. Some of these video files can be up to 100MB. The site is written in PHP and CGI (perl, yuck!). I have set IIS's CGI timeout setting to well over an hour, however, I get the good ol "The page cannot be displayed" message whenever I try to upload a file over 25MBs. The error message appears within 30 seconds of the upload. When I upload a file of 25MBs, it takes roughly 15 minutes to upload the file, but it does upload successfully. So, why will a 25MB file upload with no problem but yet a 40MB file times out after 30 seconds? The form that passes the video to the server is PHP. Also, in the PHP script, I am using the "set_time_limit(0)" command, similar to CF's "requesttimeout". The file that handles the upload itself is CGI. I couldn't find a command in cgi to set the timeout limit, so I set it in IIS. I know this is off topic, but I was hoping someone may have an idea about file uploads of this size. All of the file uploading I have done in the past have never gone over a few MBs. Thanks for any help, Jeff Stone Stone Grove Design [EMAIL PROTECTED] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists