INSERT RECORD & UPLOAD FILE WITH ONE BUTTON
I'm developing an ASP page that collects data from users and drops it into a database on the serer. One of the fields on the form will be an "attachment" which could be a .docx, jpeg, etc...
I'm able to insert the record to the database and right the filename and path using the "file" field. I've also added a second form on the page which allows the user to select the same file again to upload it to the server.
I find two problems with this method immediatly: 1) Users should only have to select the file once and click on submit once 2) The path&file should be saved with the new location of the file for future retrieval and not the path&file of where it came from.
I've searched and tried using the FREE ASP Uploads but can't get it to work by saving the data to the database and uploading the data at the same time.
It seems that I need to be able to perform two actions from one submit button.
I'd greatly appreciate some tips/tricks/suggestions on how to do this if someone has done this before. I've spent 3 days reading and reading and testing and testing with no results. I'm not a pure asp programmer so I was hoping Dreamweaver had something built in but it seems that it is only for Cold Fusion pages.
Thanks in advance for any help.
