Attach a file to an ASP form

Posted on 2003-02-25
Medium Priority
Last Modified: 2010-05-18
Okay, here's my question.

I am building a website where the user should be able to send a file to me.
First, the user needs to fill out a fotm with his own "data", and at the bottom of the form there should be the "attach file" part.

This is what I have in the beginning:

            <form action="/mailform.asp" method="POST">
              <INPUT TYPE=hidden NAME="mailform_email" VALUE="info@domain.nl">
          <INPUT TYPE=hidden NAME="mailform_naam" VALUE="Name">
          <INPUT TYPE=hidden NAME="mailform_redirect" VALUE="http:// (adress)"

This is what I have on the attach part:

            <input type="FILE" name="FILE1" size="40">

But what do I have to do to let the ASP actually send the file with the users data?

I am using Dreamweaver to make the website

Thanks in advance!!!

Question by:Sassiewas
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 18

Expert Comment

ID: 8017711
You need to have a post-processor script, http://www.websupergoo.com/abcupload-1.htm is probably the best.
LVL 18

Accepted Solution

mgfranz earned 300 total points
ID: 8017749
If you are looking for a DW attachment, check this out; http://www.dmxzone.com/ShowDetail.asp?NewsId=1622

If you can't install components, check this out; http://www.asp101.com/articles/jacob/scriptupload.asp
Or here, (I like this one better) http://www.pstruh.cz/dlldownload/pASPUpl5.zip

Expert Comment

ID: 8017797
There are two methods of uploading files
 - pure asp code (slow)
 - component upload
Where are some good sites to look into
 - http://www.4guysfromrolla.com/webtech/110499-1.shtml (info on the subject)
 - http://www.asp101.com/articles/jacob/scriptupload.asp (pure asp upload)
 - http://www.aspupload.com/ (asp upload component)

Either way you will have to switch the form encrtype to:

One thing to note: Any once you start collecting information on the asp processing page you can not do a request.form("") to capture any of the other elements, you will need to use the component or asp class to access the elements. Otherwise the upload will not process.
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Expert Comment

ID: 9576869
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.
LVL 58

Expert Comment

ID: 9753866
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept Answer by mgfranz

Please leave any comments here within the next seven days.
EE Cleanup Volunteer

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question