Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<form enctype="multipart/form-data" problem

Status
Not open for further replies.

Faheemi

Programmer
Sep 2, 2001
59
HK
Hi there,

I have a form as below
<form enctype=&quot;multipart/form-data&quot; action=&quot;file1.asp&quot;>
<input type=&quot;text&quot; name=&quot;text1&quot;>
<input type=&quot;file&quot; name=&quot;file1&quot;>
</form>

In the file1.asp I used
Request(&quot;text1&quot;). It should return the value typed in the text box. But it is returning empty value for that.

But if I use

<form action=&quot;file1.asp&quot;>
<input type=&quot;text&quot; name=&quot;text1&quot;>
<input type=&quot;file&quot; name=&quot;file1&quot;>
</form>

then it works fine.

Any help in this will be highly appreciated.

Thanks and regards,
Hameed
Hong Kong
 
You need to use a file upload object, such as SAFileUP, need to instantiate the object:

Set oUpload = Server.CreateObject(&quot;SoftArtisans.FileUp&quot;)

Then you call the form fields by:

oUpload.Form(&quot;text1&quot;)

Do you know what (if any) file upload object you have installed on the server?
 
Thanks lobstah,

I thought I could use both request object and any of the File Upload object together. But it did not work for me. So I installed aspSmartUpload object from in the server and using this object I could access the form object including the file object.

Thanks and regards,

Faheem Hameed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top