473,408 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

ASP, multipart/form-data encoding

I'm sorry if this is the wrong newsgroup, but the ASP ones seem to be
devoid of any talk about ASP (and rather filled with spam).

I have a very simple form here that loops back into upon submission:

All I'm trying to do is test that the hidden field is passing properly (it's
not). It works fine when I remove the encoding property from the FORM tag,
but I need it to build a file upload component. I've noticed quite a few
messages on various newsgroups and forums regarding this issue, but none
seem to have an answer..
<% option explicit %>
<html>
<head>
<title>Test</title>
</head>
<body>
<% Response.Write("Hidval: " & request.Form("hidval")) %>
<form action="upload.asp"
enctype="multipart/form-data" method="post"
name="f" id="f">
Pick a file to upload:<br />
<input type="file" name="test" size="50" ID="File1"/>

<input type="hidden" name="hidval" value="test">
<input type="submit" value="submit" ID="Submit1" NAME="Submit1"/>
</form>
</body>
</html>I've been messing with this all day without luck, any insight would
be greatly appreciated!

Nov 18 '05 #1
3 1677
Hi, Jon Petrak,

Most probably it is the parser that doesn't parse correctly the posted data.
As I don't have some code to check, could you try moving the hidden before
the input type=file control and then testing the value in the second page.

Hope this helps
Martin
"Jon Petrak" <jp@nospam.no> wrote in message
news:gQD0c.40514$A12.30527@edtnps84...
I'm sorry if this is the wrong newsgroup, but the ASP ones seem to be
devoid of any talk about ASP (and rather filled with spam).

I have a very simple form here that loops back into upon submission:

All I'm trying to do is test that the hidden field is passing properly (it's not). It works fine when I remove the encoding property from the FORM tag,
but I need it to build a file upload component. I've noticed quite a few
messages on various newsgroups and forums regarding this issue, but none
seem to have an answer..
<% option explicit %>
<html>
<head>
<title>Test</title>
</head>
<body>
<% Response.Write("Hidval: " & request.Form("hidval")) %>
<form action="upload.asp"
enctype="multipart/form-data" method="post"
name="f" id="f">
Pick a file to upload:<br />
<input type="file" name="test" size="50" ID="File1"/>

<input type="hidden" name="hidval" value="test">
<input type="submit" value="submit" ID="Submit1" NAME="Submit1"/>
</form>
</body>
</html>I've been messing with this all day without luck, any insight would
be greatly appreciated!

Nov 18 '05 #2
Tried that, with no luck. Going to take a look at the http headers to see if
I can narrow this down any.

"Martin Dechev" <de*******@hotmail.com> wrote in message
news:OJ*************@TK2MSFTNGP12.phx.gbl...
Hi, Jon Petrak,

Most probably it is the parser that doesn't parse correctly the posted data. As I don't have some code to check, could you try moving the hidden before
the input type=file control and then testing the value in the second page.

Hope this helps
Martin
"Jon Petrak" <jp@nospam.no> wrote in message
news:gQD0c.40514$A12.30527@edtnps84...
I'm sorry if this is the wrong newsgroup, but the ASP ones seem to be
devoid of any talk about ASP (and rather filled with spam).

I have a very simple form here that loops back into upon submission:

All I'm trying to do is test that the hidden field is passing properly

(it's
not). It works fine when I remove the encoding property from the FORM tag, but I need it to build a file upload component. I've noticed quite a few
messages on various newsgroups and forums regarding this issue, but none
seem to have an answer..
<% option explicit %>
<html>
<head>
<title>Test</title>
</head>
<body>
<% Response.Write("Hidval: " & request.Form("hidval")) %>
<form action="upload.asp"
enctype="multipart/form-data" method="post"
name="f" id="f">
Pick a file to upload:<br />
<input type="file" name="test" size="50" ID="File1"/>

<input type="hidden" name="hidval" value="test">
<input type="submit" value="submit" ID="Submit1" NAME="Submit1"/>
</form>
</body>
</html>I've been messing with this all day without luck, any insight would be greatly appreciated!


Nov 18 '05 #3
For future reference, the issue was that ASP does not natively support that
encoding type and the data has to be parsed manually.

"Jon Petrak" <jp@nospam.no> wrote in message
news:goO0c.40771$A12.13383@edtnps84...
Tried that, with no luck. Going to take a look at the http headers to see if I can narrow this down any.

"Martin Dechev" <de*******@hotmail.com> wrote in message
news:OJ*************@TK2MSFTNGP12.phx.gbl...
Hi, Jon Petrak,

Most probably it is the parser that doesn't parse correctly the posted

data.
As I don't have some code to check, could you try moving the hidden before
the input type=file control and then testing the value in the second page.
Hope this helps
Martin
"Jon Petrak" <jp@nospam.no> wrote in message
news:gQD0c.40514$A12.30527@edtnps84...
I'm sorry if this is the wrong newsgroup, but the ASP ones seem to be
devoid of any talk about ASP (and rather filled with spam).

I have a very simple form here that loops back into upon submission:

All I'm trying to do is test that the hidden field is passing properly

(it's
not). It works fine when I remove the encoding property from the FORM

tag, but I need it to build a file upload component. I've noticed quite a few messages on various newsgroups and forums regarding this issue, but none seem to have an answer..
<% option explicit %>
<html>
<head>
<title>Test</title>
</head>
<body>
<% Response.Write("Hidval: " & request.Form("hidval")) %>
<form action="upload.asp"
enctype="multipart/form-data" method="post"
name="f" id="f">
Pick a file to upload:<br />
<input type="file" name="test" size="50" ID="File1"/>

<input type="hidden" name="hidval" value="test">
<input type="submit" value="submit" ID="Submit1" NAME="Submit1"/>
</form>
</body>
</html>I've been messing with this all day without luck, any insight would be greatly appreciated!



Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

34
by: Niels Berkers | last post by:
Hi, i'd like to host my web pages using multiparts to reduce the number of hits on the server. i know this isn't a real PHP subject, but i'll try it anyway. i've been searching the web for...
4
by: Hunter Peress | last post by:
I have been unable to write a script that can do (and receieve) a multipart form upload. Also, it seems that there really are differences between python's implementation and else's. Can someone...
0
by: Travis Pupkin | last post by:
Hi, I have a form that triggers the sending of an e-mail via CDOSYS. I'd like to make this a nice HTML-formatted multipart message, but for some reason the text version is coming through blank....
3
by: c# newbie | last post by:
System.Web.Mail.MailFormat The enumerated values for MailFormat are: Html Text How can I send a multipart/alternative format message ?
4
by: John Fereira | last post by:
So, one of the limitations of multipart-form handling is that when an <input type="file" ..> tag is used it will bring up a window which allows a user to select a file for upload but won't allow...
4
by: yoram.ayalon | last post by:
Hi, I need to create a multipart request to UPS manifest upload electronic service. UPS wants the request to consist of a series of headers and bodies, and its not clear how can I use the...
4
by: DMG | last post by:
I have <identity impersonate = "true" /& <authentication mode="Windows"/in the web.config. This is a 2.0 site. My Goal: I want to simply have the user browse to a file on a mapped drive and get...
2
by: madmak | last post by:
Hi, I am a noob with PHP and need some asistance regarding PHP and lotus notes. I am trying to create a multipart message in PHP to send mail via lotus notes. Here is the code snippet. ...
6
by: fnoppie | last post by:
Hi, I am near to desperation as I have a million things to get a solution for my problem. I have to post a multipart message to a url that consists of a xml file and an binary file (pdf)....
0
by: pezkel | last post by:
Hi, For the last two weeks I have been looking for a solid way to create an asp page that can upload a binary file and an xml file in a multipart message to a third party website. I am on the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.