Copy link to clipboard
Copied
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".
Copy link to clipboard
Copied
It was introduced in version 9.
Copy link to clipboard
Copied
what was introduced in CF9 that allows a user to select multiple files at once?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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" />