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
Solved

Accepting binary data from form fields in classic asp

Posted on 2009-04-08
5
380 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

860 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