Solved

Accepting binary data from form fields in classic asp

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
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 …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

770 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