macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

Re: Upload Entire Directory Using CFFILE

Subject: Re: Upload Entire Directory Using CFFILE
From: Adam Cameron
Date: Fri, 26 Oct 2007 15:26:41 +0100
Newsgroups: macromedia.coldfusion.cfml_general_discussion

>  If not, there must be a away--ColdFusion is such a great program, and I have 
> gotten it to do just about anything we need it to do except upload multiple 
> files files at once to our server...

The files you are uploading are on the client computer.  ColdFusion has
*no* interaction with the client computer at all.  All communications are
between client and WEB SERVER.  File uploads are handled by the client
computer, using the provisions of the HTTP protocol, which - as implemented
by a web browser - only allows for single files to be uploaded, via each
file input control on a form.

If you want multiple files to be uploaded from a client computer using a
single control, you need to use something other than a web browser (as
suggested by someone else: some manner of applet, perhaps embedded in an
HTML document).

The applet will pass the data to the web server, and if the request is for
a mime type that the web server has been configured to pass to ColdFusion
(usually a CFM or a CFC file), then the web server will pass the request to
ColdFusion, which will deal with it however you tell it to.

The problem isn't getting the files to CF; it's getting them to the web
server in the first place.  CF's got nothing to do with your problem (or,
intrinsically, its solution).

-- 
Adam

<Prev in Thread] Current Thread [Next in Thread>