Solved

Accepting binary data from form fields in classic asp

Posted on 2009-04-08
5
381 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
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/…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

735 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