Hi Joel,

with the upload code, it usually only handles a file at a time. You could zip 
the files as well.

simple case(one file):
<!--- upload.cfm--->
<cfform action="upload_finished.cfm" method="POST" 
enctype="multipart/form-data">
<table>
  <tr>
    <td>File:</td>
    <td><cfinput type="file" name="FileToUpload" size="25" maxlength="255"></td>
  </tr>
  <tr>
    <td colspan="2"><cfinput type="submit" name="Submit" value="Upload"></td>
  </tr>
</table>
</cfform>

<!---upload_finished.cfm--->

<!--- Use the cffile tag to upload the file passed from the form to our 
ColdFusion server --->
<cffile action="Upload"
         filefield="FileToUpload"
        destination="where you want the files to be uploaded(ie. 
C:/coldfuson8/wwwroot/Test)"
         nameconflict="Overwrite"
         attributes="Normal">
<cfoutput> Your file as been uploaded to the server!</cfoutput>

<!--- Output the results with cfdump --->
<h2>cffile Upload Results:</h2>
<cfdump var="#cffile#">

Note-- the last part is not necessary, but I have been using cfdump alot 
lately, and don't know how I ever lived without it!

I did a google search,and found this from Ben, a blog that I like to read
http://www.bennadel.com/blog/1117-Ask-Ben-Uploading-Multiple-Files-Using-ColdFusion.htm

hope this helps,
John


      

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3949
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to