Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FILE UPLOAD AND DESCRIPTION

Status
Not open for further replies.

kingjjx

Programmer
Joined
Sep 18, 2001
Messages
181
Location
US
Can you create a page that will allow a user to upload a file and at the same time provide a text box for him to describe what the file is so that once the user clicks submit ... it will upload the file and display the file description ?

THANKS
-JON

 
I forgot to mention that the description is going to be stored in a database ...

 
Yes,

Create your form with the file selection field, and a field for the description:

Code:
<input type=&quot;file&quot; name=&quot;myfile&quot;>
<input type=&quot;text&quot; name=&quot;filedescription&quot;>

Once the form is submitted, use CFFILE to upload the file following by CFQUERY to insert the filename and description into your table.

You can then provide an output message to the browser stating whether the upload was successful or not, and the description that was entered.

Hopefully this is what you are after. If it is the actually code to do this that you are looking for, let us know.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top