Link to home
Start Free TrialLog in
Avatar of Arnold Layne
Arnold LayneFlag for United States of America

asked on

Accepting binary data from form fields in classic asp

I have a form with text values but also has a <input type="file"> field. Therefore, I need to add "enctype=multipart/data" to my form tag. This causes the string values of the other text fields to be unreadable by the Request object. So is there another method I could use to get the text field form data and convert it to a string? If so, could you also tell me the function to switch it back before submission?
Avatar of apresto
apresto
Flag of Italy image

Dont use Request.Form, use your Upload object.Form,
i.e
Dim MyUploader
set MyUploader = ....
FieldValue = MyUploader.Form("FieldName") '//Instead of Request.Form
Avatar of Arnold Layne

ASKER

Is upload object a class that I need to load? If so, where would I get that class from?
Ok, you have a File upload control on your page, what are you using to execute the actual upload? What is the name of your upload object? Can you post the code you are using to perform the upload?
OK, so you're talking about third party classes. So if I get this, can i merely take the value that the upload object returns and convert it to a string?
ASKER CERTIFIED SOLUTION
Avatar of apresto
apresto
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial