Solved

Accepting binary data from form fields in classic asp

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

747 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

9 Experts available now in Live!

Get 1:1 Help Now