Skip to main content
July 24, 2010
Question

CF form element to select multiple files?

  • July 24, 2010
  • 2 replies
  • 999 views

Does Coldfusion have any tag that will generate some kind of form element for selecting multiple files to upload? I want something where the user can select multiple files at once rather than creating a bunch of inputs with type="file".

This topic has been closed for replies.

2 replies

July 27, 2010

thanks. i found the right cf form element. However, I am having problems getting it to work within the fusebox framework. I keep getting the status code 500, and the image does not get uploaded. Would you have any guesses as to why it doesn't work?

Here is the code in my view file:

<cffileupload url="index.cfm?fuseaction=app.uploadImagesProcess" />

and here is the code for the resulting fuseaction:

<cfset uploadFolderPath = "C:\ColdFusion9\wwwroot\WebApp1\uploads" />

<cffile action="uploadall" destination="#uploadFolderPath#" nameconflict="makeunique" />

Inspiring
July 24, 2010

It was introduced in version 9.

July 25, 2010

what was introduced in CF9 that allows a user to select multiple files at once?

Inspiring
July 25, 2010

Have a look at the docs regarding what CF offers by way of form controls:

http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec17576-7ffc.html#WSc3ff6d0ea77859461172e0811cbec22c24-7781

The docs are always a good place to start when wondering about what capabilities CF has.

--

Adam