Skip to main content
Inspiring
December 14, 2006
Question

multiple file upload

  • December 14, 2006
  • 2 replies
  • 243 views
Hi all,
http://the-stickman.com/web-development/javascript/upload-multiple-files-with-a-single-file-element/#comment-173
This link show how to do multiple upload files, very nice...
The front-end is done as the example in coldfusion, but the back-end is my
problem.
In my page I have get method and can't figure out how to get the file names
from the url.
When I submit the page looks like
http://mywebpage/uploadfiles.cfm?file_2=&file_1=sample1.doc&file_0=sample2.doc&upload=upload
How can I get the names so I can pass to my cffile upload action?
Tks in advance

JFB


This topic has been closed for replies.

2 replies

Inspiring
December 15, 2006
You got Ian... it was the post method...
Tks
JFB


"Ian Skinner" <ian.skinner@bloodsource.org> wrote in message
news:elsl71$b24$1@forums.macromedia.com...
> What this is doing is dynamically creating invisible <input
> type="file"...> tags. When you submit the form, you will have to process
> each of these tags individually with a <cffile...> tag.
>
> Some intelligent use of looping and string processing should make this
> pretty easy.
>
> I suspect you do not have your base form set up correctly. It needs to
> have a method="post" and a enctype="multipart/form-data".


Inspiring
December 14, 2006
What this is doing is dynamically creating invisible <input
type="file"...> tags. When you submit the form, you will have to
process each of these tags individually with a <cffile...> tag.

Some intelligent use of looping and string processing should make this
pretty easy.

I suspect you do not have your base form set up correctly. It needs to
have a method="post" and a enctype="multipart/form-data".