![]() |
| file upload in a form |
|
danimak
|
This is probably going to be a very basic question, but here goes: I understand how to make forms and have them sent to me by e-mail using an aspmailform.asp file. Now, I've added a file upload to the form, but do not know how to access files that people upload. According to this page, http://www.hostmysite.com/support/programming/aspupload/, I am supposed to add an uploadscript.asp file and add this command to the HTML form page: ACTION="uploadscript.asp. My question is 1) what, then, happens to the aspmailform.asp instructions for the form info to be e-mailed to me, and 2) once I add the uploadscript.asp file, where do I get the file?
I know this is a basic programming question but any help would be appreciated. |
||||||||||||
|
|
|||||||||||||
|
whitesites
|
If you are running asn ASP site I can't help you, but if you are running a asp.net site forget anything the support sections of the HMS support tell you. Write your own script to get the job done. Its not hard at all. I will write you some code to show you how
I have realized that there are thousands of new .NET guys out there with questions like this, so if you want to learn more checkout my http://blog.whitesites.com. There isn't much there right now, but in the future I will be adding lots of .NET articles. I am a ANTI visual studio guy, so all my examples will be perfect for those of use who prefer to do things using notepad or dreamweaver. I also don't use complex classes, and stick to simple functions that noobies can easily understand. |
||||||||||||
|
|
|||||||||||||
|
whitesites
|
Here is the an example
Just make sure you have given "network service" full permissions to whatever space on the server you want the file to be written to |
||||||||||||||
|
|
|||||||||||||||
|
danimak
|
Thanks for posting the example of the script, whitesites. But where does this script go? Can I put it in the aspmailform.asp file I already have for the rest of the form information?
|
||||||||||||
|
|
|||||||||||||
|
whitesites
|
that is an aspx script and I don't think it will work with asp. That script is setup to be standalone. I recommend you use a asp.net instead of asp. Better to learn the new than the learn the old.
|
||||||||||||
|
|
|||||||||||||
| file upload in a form |
|
||
|


