Download two files from a form at once...?

Given I have two file values of form on a single page, how would I download both on the second? That's what I tried to do...

SHAPE ON THE FIRST PAGE

< do onSubmit = "return checkrequired (this)" action = "upload2.cfm" method = "post" enctype = "multipart/form-data" > "

Preset name < br / >
< input type = text name = "requiredname" > < br >
Type < br / >
< input type = text name = "requiredgenre" > < br >
BPM < br / >
< input type = text name = "requiredbpm" > < br >
Soundslike < br / >
< input type = text name = "requiredsoundslike" > < br >
Daw required < br / >
< input type = text name = "requireddaw" > < br >
VSTs required < br / >
< input type = text name = "requiredvst" > < br >
License < br / >
< input type = text name = "requiredlicense" > < br >
Instructions of < br / >
< name textarea = "requiredinstructions" cols = "20" rows = "4" >
< / textarea > < br >
Preset file: < br / >
< input type = "FILE" name = "ofname" > < BR >
Overview of an MP3 file: < br / >
< input type = "FILE" name = "ofname2" > < BR >
< BR >


< input type is value is "Upload" >
< / make >

COLDFUSION ON THE SECOND PAGE


< cfset subdir = #GetCurrentTemplatePath () # >
(< cfset subdir='#replace(subdir,'\upload2.cfm','\presets') #' >

< cfset subdir2 = #GetCurrentTemplatePath () # >
(< cfset subdir2='#replace(subdir2,'\upload2.cfm','\presetsmp3') #' >

< cfif ofname is ">
< font color = "Red" size = "3" > < b > select a file...! < /b > < / police > < br > < br >
< a href = "JavaScript:history.go(-1) (-1)" onMouseOver = "self.status = document.referrer; return true" > < b > PRECEDENT... < /b > < / a > "
< cfabort >
< / cfif >


< cfset dstfile =' #subdir #' >
< CFFILE ACTION = "Upload".
FILEFIELD = "ofname.
DESTINATION = "" #dstfile # ""
nameconflict = "Skip" >

< cfset dstfile =' #subdir2 #' >
< CFFILE ACTION = "Upload".
FILEFIELD = "ofname2."
DESTINATION = "" #dstfile # ""
nameconflict = "Skip" >

< cfquery name = "newpreset" datasource = "062409js06ag" >
Insert in the preselections (artistid artistname presetname, presetgenre, bpm, soundslike, Daw, vsts, license, pfilename, instructions) values (#findname.ID #, "#findname.uname #", "#requiredname #", "#requiredgenre #", "#requiredbpm #", "#requiredsoundslike #", "#requireddaw #", "#requiredvst #", "#requiredlicense #", "#serverfile #", "#requiredinstructions #")
< / cfquery >

< CFOUTPUT > < B > FILE RECEIPT! < BR > < / CFOUTPUT >

iamrobot,

Have you thought that that point, or do you still need help?

Leonard B

Tags: ColdFusion

Similar Questions

Maybe you are looking for