cffaq.com


Hosted and maintained by Ben Forta. Designed by Trilemetry.
Language:
    © 2002-2007 Ben Forta. All Rights Reserved  
<Home> <FAQ> <Question> <About>

Question

How do I create a form to be used for file uploading?
You need to set create a form, set the <FORM> ENCTYPE attribute to "multiform/form-data", and then add a form field of TYPE="file". When the form is displayed it will contain a field and button for file selection, and when the form is submitted the file will be uploaded to ColdFusion. An example of this is shown below:
<FORM ACTION="process.cfm"
      ENCTYPE="multipart/form-data"
      METHOD="post">
File: <INPUT TYPE="file" NAME="FileToUpload">
<BR>
<INPUT TYPE="submit" VALUE="Upload">

Comments


Add Your Comments

Your Name:
Your E-Mail:
Comment:
Verification: Copy the text on the left:

<submit question>