I am looking for some advice on a free script or code that can allow visitors to upload files to me from my webpage to my email address. <form action="upload.asp" method="post" enctype="multipart/form-data"> <input type="file" /> <br /> <input name="Submit" type="submit" value="submit" /> </form> I have started with the HTML upload form code above, but I am not sure what to put in the action page (upload.asp) I am new to ASP so i don't know where to start. Could anyone please help me? Kind Regards
Do you know which asp upload component is installed on your server? If you donno than do ask about this to your hosting provider and let me know. I will send you sample script which you can use
Thank you for your reply. I am not too sure, I am with fasthosts and have a windows developer account http://www.fasthosts.co.uk/hosting/windows-developer/ If this doesn't help, i could call them, but there is normally a long hold on the phone. Thanks again
I have found some information from my hosting support website: Active Server Pages (ASP) is a Windows scripting technology developed by Microsoft for Internet Information Server (IIS). It is a powerful tool for: Creating dynamic content Connecting to ODBC databases Dynamically formatting pages Executing complex logic statements Fasthosts supports ASP on its Windows with ASP servers. The following scripting languages are supported within ASP: VBScript (default) JavaScript PerlScript ASP is not supported on Linux servers. Does this help??? Kind Regards
You'll have to upload the file on the server first then use cdont or cdosys ( depending on what your host is supporting ) to email you the file.. This is how I would do it. There is a free asp upload you could find here http://www.freeaspupload.net/ pretty well documented. So start by implementing this on the page where the user upload the file. Then , once this is working, use either cdont or cdosys and send yourself this file over email. You could find email with asp here : http://www.w3schools.com/asp/asp_send_email.asp Or you may simply want to implement the upload part.. depending on what you need to do with the file the user is uploading.. cause in fact once it will be uploaded on your server you could easilly pick it up via ftp.. Off course all this is at it's pretty basic implementation but would do the job.
Yes, it doesn't matter too much about how i get it as long as i know when someone has uploaded so i can get the file. The type of files i want to receive are microsoft word type documents. Kind Regards
Ok well in this case, simply install the free asp upload that I've pointed out http://www.freeaspupload.net/ ( documentation is pretty good and it is pretty much self descriptive.. ) you'll be able to set the type of files you want to allow to user to upload etc etc. And once this will be working you'll simply send you a mail out to your address. Cheers
just a small point here: if you are new to ASP do not waste your time learning it. its old and out-dated. learn ASP.NET instead. its by far more programmer friendly, and has whole lot of great online tutorials, and even a free version of the microsoft's IDE