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

uploading a file

Status
Not open for further replies.

DuncanKing

Programmer
Joined
Jan 14, 2004
Messages
32
Location
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.



Thanks
 
on the form use input type="file" name="whatever"

on the action, use cffile action="upload" formfield="form.whatever" destination=""

read the cf reference for more details on cffile

Kevin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top