This content has been marked as final. Show 5 replies
If you have access to the Coldfusion Administrator, it might help to increase the timeout value in the Settings.
I would. But it takes an extremely long time for the request and I think it is being block some other way. When I do the same request with the same file and our lab server it only takes a few seconds. When I do the same request in asp and asp.net on that server it only takes a few seconds too. It seems like something is block the file from being upload
Could we see the code?
Below is the Snippet of code.
It never makes it past this first line. It almost seems like something on IIS5. I creates the file,but stops at 1048 kb. But this is weird, when the error message appears, the file becomes 7.8m. The entire file is 8megs
<CFSET FileName = CFFile.ClientFile>
<CFSET FileSize = CFFile.FileSize>
<!--- DETERMINE MIME TYPE --->
<CF_MIME EXTENSION=#File.ClientFileExt# TYPE=#File.ContentType# SUBTYPE=#File.ContentSubType#>
<!--- MOVE IT TO CORRECT LOCATION (REPLACING OLD VERSION, IF NECESSARY) --->
<CFFILE ACTION="Rename" SOURCE="#TargetFile#.tmp" DESTINATION="#TargetFile#" ATTRIBUTES="Normal">
You must state, that is, hard-code, the name of the form field used to select the upload file. #Attributes.SourceField# is no good, as you may not use pound(#) signs.
The Destination attribute should be the path to a directory. You seem to use the path to a file in the upload-action. Also, is there an attributes option called "temporary"? I'm aware of just "readOnly", "hidden" and "normal".