I am able to upload 1 GB file.
However, when I upload 2.2 GB file, it get struck at 99% progress. I don't get any error.
I am running ColdFusion 11 on a Windows Server 2012 R2 machine.
1. In ColdFusion code, I set the file limit to 3.2 GB.
main cfm page:
title = "File Upload" />
<cfset param1 = url['par1'] />
<cffile action="uploadAll" destination="#param1#" nameconflict="overwrite" />
2. In ColdFusion server setting, I set the following:
Max number of POST request para: 3200
Max size of post data: 3200 MB
Request Throttle Threshold: 4 MB
Request Throttle Memory: 3200 MB
3. In Windows IIS filter setting, I set the max allowed content length (Bytes) to 3200000000.
The limit could be hardware (ie, if the webserver only has 6Gig of RAM, trying to upload a 2.2Gig file might be an issue because much of the RAM is being used by the server, itself, and CF and the webserver.)
Check the CF documentation to see if the maxuploadsize attribute should be in quotes (ie, "3200" instead of just 3200) and what that number refers to (bytes, megabytes, etc.)
The max number of POST isn't related to file size; it's a maximum number of FORM elements that can be submit at once. Default is 100 for security reasons.
Thanks for the reply.
The server is a VM with 12 GB RAM. I monitored the memory usage during upload process and it never exceed 50%.
Normally 36% RAM is used and during the peak of the upload, 50% of RAM is used.
When upload is struck at 99%, the memory usage is at 36%.
I double checked the maxuploadsize parameter; it is in Megabytes and should be in quote.
thanks for replying.
I still cannot upload the 2.2 GB file.
This is what I have:
1.In C:\inetpub\wwwroot\web.config, this is what I have:
<?xml version="1.0" encoding="UTF-8"?>
<add value="main.cfm" />
<requestLimits maxAllowedContentLength="3200000000" />
<directoryBrowse enabled="true" />
<authentication mode="Windows" />
2.In Windows IIS web server filter setting, I set the max allowed content length (Bytes) to 3200000000.
3. C:\Windows\System32\inetsrv\config\applicationHost.config, this is what I have"
<requestLimits maxAllowedContentLength="3300000000" />
After having read what BKBK provided, I did some looking around (I was amazed that there even _was_ a limit.)
According to this MSDN blog, IE6-8 originally were set for 2g limit; they have since changed IE8 to accept 4g files. But, the blog also mentions that HTML5 FileAPI can split the file into chunks, making even larger uploads possible.
thanks for the help
thanks for the help