Web Hosting Talk







View Full Version : asp file upload


hoachen
03-02-2006, 03:36 PM
I seem out of luck to find the example from internet. Most of them are very complicated and long. Can anyone show me or direct me to a site that have useful example? I am looking for asp script that will upload the file from the user from a form that on my website. When the user press submit the resume attachement will send to my email.

<form name="attachment" action="resume.asp">
<input type="file" name="resume"><br>
<input type="submit">

</form>

I don't know how to write the script will take the file that upload by the user. Please help!..

thank you for reading my question
cheers,
hoachen

SiliconWolf
03-02-2006, 08:53 PM
First, check with your host to see if your account supports the ASPUpload component. Most Windows hosts will list that somewhere on their website if they support it.

If you don't have ASP Upload available, try this:

http://www.asp101.com/articles/jacob/scriptupload.asp

And don't forget that you'll need to change the form encoding, like this:

<form name="attachment" action="resume.asp" method="post" enctype="MULTIPART/FORM-DATA">

hoachen
03-03-2006, 08:53 AM
yes,the server is supports the ASP Upload. My question is how do I write the code to upload the user resume? I did tried the step that the website you gave but it does not work!. Please for further advice, thanks a lot.

sincere
hoachen



First, check with your host to see if your account supports the ASPUpload component. Most Windows hosts will list that somewhere on their website if they support it.

If you don't have ASP Upload available, try this:

http://www.asp101.com/articles/jacob/scriptupload.asp

And don't forget that you'll need to change the form encoding, like this:

<form name="attachment" action="resume.asp" method="post" enctype="MULTIPART/FORM-DATA">

SiliconWolf
03-04-2006, 01:57 AM
Because you have the ASP Upload component, you don't need to bother with the link I posted. That was just an alternative in case you didn't have it.

I'm not going to be able to help you with every single bit of code you will need to finish your application. Try reading the documentation at http://www.aspupload.com/ or google "ASP Upload" and see if you can find some tutorials that will give you some examples.