This content has been marked as final. Show 5 replies
I have not used cffile to upload but I was having issues getting it to write large files to disk. I fixed it by usng java to write the file to disk. You may want to use an input tag with file type to upload the file and then use http://www.burnette.us/blog/index.cfm/2006/1/30/Using-Java-Instead-of-cffile-to-Write-to-D isk to write to disk.
Thanks for that tidbit. I can actually use that for another part of the project.
Unfortunately the file is not even getting into memory for the system to be able to write a java stream. Above 100mb the upload process is instantly stopped. Nothing makes it to the server.
Originally posted by: TomD_2
Could it be that Apache is limiting your upload size?
See the LimitRequestBody directive (Apache 2.2)
or LimitRequestBody (Apache 1.3)
I checked the Apache Config (Apache 2) and it is set to the 2GB max.
I just tried adjusting the JVM Heap amounts last night. I increased the Max Heap to 1024m from the default 512m and the -XX:MaxPermSize to 512m.
From the few posts I have found on the web these are supposed to be the biggest factor, but they had no effect.
The cffile upload really doesn't have anything to do with the upload it just saves the uploaded file for you. So have you commented out cffile to see if the file is uploaded to the server? This would let you know if the problem is in the form-file-webserver or if the issue is in the coldfusion-cffile-save.