file upload, large files, HTTP/FTP, CF/IIS, CFFILE - magic formula?

2001-08-17 Thread Mike Amburn

need the ability to upload 5mb-10mb CSV/XML file to a CF template that
will process it. i'm attempting to use a multi-part form post, but
here's the problems i've experienced:
 
1. once the web server receives the form post, it has to then transfer
it to CF. when the file is large, this process can take over 5-10
minutes. this problem is documented all over the web (just do a search).
unfortunately, in my case, it can't take longer than a minute or so.
 
2. if form post via HTTP to IIS doesn't work, is there any way to upload
a file through the web via FTP? i know you can ftp into a ftp server via
Javascript, but i don't know if you can upload files via Javascript.
 
3. i've considered other solutions -- submitting to a servlet (elimates
IIS), uploading FTP via signed applet -- but would like to find an
interim solution using CF. any other ideas?
 
-mike


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
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



RE: file upload, large files, HTTP/FTP, CF/IIS, CFFILE - magic formula?

2001-08-17 Thread Billy Cravens

If you're wanting to use the browser upload, you're quite limited, no
matter what language you use.  You could split up the process - when
they upload, just save the file.  Have a separate process (perhaps a
scheduled task) that parses the file.  As far as your time limit is
concerned, you have very little control.  It's all a matter of
bandwidth.  If the file is over X bytes, it will take at least Y
seconds, if the user has Z bandwidth.  

Sounds like one of those classic situations where CF may not be the best
approach.  My recommendation: make an app (VB, etc) that user downloads.
In your app, parse the large file into a recordset and then stream that
recordset up to your site - you can have a nifty little status bar
showing the progress, as opposed to a empty browser window while a large
process is taking place.

---
Billy Cravens
HR Systems, EDS
[EMAIL PROTECTED]


-Original Message-
From: Mike Amburn [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 17, 2001 12:24 PM
To: CF-Talk
Subject: file upload, large files, HTTP/FTP, CF/IIS, CFFILE - magic
formula?


need the ability to upload 5mb-10mb CSV/XML file to a CF template that
will process it. i'm attempting to use a multi-part form post, but
here's the problems i've experienced:
 
1. once the web server receives the form post, it has to then transfer
it to CF. when the file is large, this process can take over 5-10
minutes. this problem is documented all over the web (just do a search).
unfortunately, in my case, it can't take longer than a minute or so.
 
2. if form post via HTTP to IIS doesn't work, is there any way to upload
a file through the web via FTP? i know you can ftp into a ftp server via
Javascript, but i don't know if you can upload files via Javascript.
 
3. i've considered other solutions -- submitting to a servlet (elimates
IIS), uploading FTP via signed applet -- but would like to find an
interim solution using CF. any other ideas?
 
-mike
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
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