Solved

Accepting binary data from form fields in classic asp

Posted on 2009-04-08
5
378 Views
Last Modified: 2012-05-06
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?
0
Comment
Question by:BobHavertyComh
  • 3
  • 2
5 Comments
 
LVL 23

Expert Comment

by:apresto
ID: 24098784
Dont use Request.Form, use your Upload object.Form,
i.e
Dim MyUploader
set MyUploader = ....
FieldValue = MyUploader.Form("FieldName") '//Instead of Request.Form
0
 
LVL 9

Author Comment

by:BobHavertyComh
ID: 24098823
Is upload object a class that I need to load? If so, where would I get that class from?
0
 
LVL 23

Expert Comment

by:apresto
ID: 24098897
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?
0
 
LVL 9

Author Comment

by:BobHavertyComh
ID: 24098982
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?
0
 
LVL 23

Accepted Solution

by:
apresto earned 500 total points
ID: 24103252
Kind of, you need to be using some kind of upload component or include file to perform the upload anyway, in which case you are creating an instance of an object, you need to use the instance of this object to access the forms fields. If you post your code you are using to upload the file that the user picks from the file object, then i can show you what i mean.
Let me know if im way off here, i may have misunderstood, thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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 information …
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

895 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now