On 12/7/05, George Abraham <[EMAIL PROTECTED]> wrote:
> All,
> For uploading multiple files to the server, we use a Java applet which works
> quite well. Now, the sizes of the files could vary. People might upload 10
> files that are 2MB each or 100 files that total about 200MB together.
> Sometime people could even upload about a gig of files if they so liked and
> wanted to wait that long, I expect. Anyway, when I last used cffile for
> upload for large files (using CF 4.5, if you please), there were all sorts
> of crappy issues you had to deal with. Are there still issues with using
> cffile for large files? I recently tested out the app with about 175MB of
> files with the largest file being about 76 MB abd the CF server crapped out
> on me. Looked up the application log and there wasn't one line of log in
> there that said anything significant happened.  Am I better off using the
> FileReader class in Java? Or any other option?
>

I would absolutely look into alternative solutions to cffile in this
case. Remember, the cffile tag reads the *entire* file into memory (if
it can) and only then does the "action" request. I'll bet money that
your "crap out" was an OutOfMemory error at the Java level -- you were
just looking at the wrong log file, which is why you didn't see it. If
you're serious about allowing uploads of the sizes you're talking
about, then streaming the file will be much more efficient. There are
some UDFs at cflib.org to help you out with this. Also, if you're
using MX 7, there is a new memory throttle on the "Settings" page
called "Maximum size of post data" to help prevent against DoS
attacks. Make sure that you up the default 10MB setting to the size of
the largest file you anticipate to accept, or you'll hit that road
block as well.

Regards,
Dave.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226463
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to