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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

upload file from cfform

Status
Not open for further replies.

DuncanKing

Programmer
Jan 14, 2004
32
IE
I would like the user to be able to select and upload a "jpg" file from a form that had other fields. So this will just be another field in the form with other data about the product. When the user clicks on "Submit" they will upload everything to the MS access database.

Does anyone know what he code would be to do this?
If there is a javascript way to do this that could be integrated into a cfform that would be OK too.

This is what I have for the field in the form


Thanks
 
This is the code I have in the form. It allows me to browse for the file but it does not upload it into the directory.

<form action="update.cfm" method="post" enctype="multipart/form-data" name="publish">

File to upload:
<input name="AdWithPhotoClassified" type="file" value="#AdWithPhotoClassified#" dir="c:\dirName">
<input type="submit" value="upload the file">

</form>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top