Random-ness-ish-ness:

You could potentially toss in the Apache FileUpload project.  I was
talking with someone about this over the weekend.

It looks like you could just stick the needed code in a CFML page,
CFML-ized from Java, and post the upload form to that CFML page and
let it handle the upload.

I suggested using the servlet approach-- you'd post your form to
/uploads and then have CF check the uploads directory for file
completion, or hack up the servlet to ping a CFM page when the state
of the upload changes.

Theoretically, you could test the basic premise out pretty easy by
just using a JSP example of FileUpload, as CF can run JSP pages
without much fuss, IIRC.

It appears that Railo uses FileUpload under the hood, I haven't
checked but I think Adobe uses something else.  Could be wrong tho.

http://commons.apache.org/fileupload/

Here's an example JSP that might get you going (using the servlet is
probably easiest tho):

http://www.developershome.com/wap/wapUpload/wap_upload.asp?page=jsp3

It looks like the FileUpload library can tell you how much has been
uploaded, as it's uploading, potentially allowing for an accurate
progress bar, too!

Just a thought.

:Den

-- 
We should not say that one man's hour is worth another man's hour, but
rather that one man during an hour is worth just as much as another
man during an hour. Time is everything, man is nothing: he is at the
most time's carcass.
Karl Marx


On Tue, Jul 27, 2010 at 11:15 AM, Thomas Harper wrote:
>
> Well, the issue I was having with cffileupload is now considered a bug 
> (83447) and while we're waiting for our platinum plan (if going that route 
> will even work), I'm checking out jFileUpload. What it does is split larger 
> files into chunks of a size designated by an attribute. In my case, I'm 
> splitting it into 256 MB apiece. Uploading is taken care of by a .cfm they 
> provide, but it doesn't put split-up files back together. Using cffile with 
> append would only work on text files. How would ColdFusion put the file 
> together? These files will be really big binaries of about 4 to 5 GB. Thank 
> you.
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335773
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to