ASP, Contact Form, Attachment Question

madmatt

Awesome is as awesome does.
Political Access
Joined
5 Apr 2002
Messages
13,314
I have a form and backend processing using ASP. I want the user to be able to attach a ZIP file (if necessary) to the email.

I know it has to be uploaded to the web server first and then emailed but I have no clue on how to accomplish this.

Any help is appreciated. Thank you.
 
I would recommend ASP Upload...

www.aspupload.com

I have used it a bit, you should check it out. I can probably give you some help if you want, but the tutorials they have on the site should be all you need.

There may be a free way to do it, but when I searched I didn't see much. The thing I liked about this is that it allows you to send the e-mail directly, uploading the attachment to memory so that server security is not compromised by allowing people to upload to the server.
 
I need custom code. I won't use third party.

Also, looks too complex for what I need. Here's all I have so far...

File check to verify file is a ZIP

Code:
   if (document.rfq.attachment.value) {
     var fileName	= document.rfq.attachment.value;
     var fileLength	= parseInt(fileName.length) - 3;
     var fileExt		= fileName.substring(fileLength,fileLength + 3);
   
     if (fileExt != "zip") {
       errorMsg += "\nAttachment: \tOnly ZIP files can be attached -- please ZIP the files before attaching them";
     } 
   }
 
Last edited:
No, I got busy working on other things. Never went back to it.
 
matt... ASPUpload rocks actually.

It is easy and no hassle in getting the upload to work. I did one for an OFFLINE project to upload photo and up till now it is still running strong
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back