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

Upload form content with file attached 1

Status
Not open for further replies.

blaises

Technical User
Sep 29, 2003
9
GB
Hey all

I've got an asp form which enables visitors to submit articles to us. The information entered in the form is directly saved to an sql database. All this works fine. But we want them to be able to also attach additional documents ( word, excel or ppt ) via a file field on the form and to have the document saved to a specific directory.

So in nutshell, once the "submit" button is clicked the form should be able to do the following:

1. save all the form contents excluding the file to the sql database fields ( this is already happening)
2. upload the file (word, excel etc) to a specific directory)
3. possibly also send us a notification email.


Any one out there with ideas on how I can achieve this?

Any pointers in the right direction will be really appreciated.

Cheers.
 
Pure asp upload script
Note when using the same form for an upload you have to use the uploads object properties, in the case of the above link that would be MyUploader.Form("somefield") instead of Request.Form("")

Email depends on which component you can use

 
Thanks guys for all the tips so far. They've been so usefull

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top