ENCTYPE="Multipart/Form-Data" Any Drawbacks?

L

Lucas Tam

Hi all,

I'm using ASP MasterPages for my templates. As such, I have a couple of
pages which are for file uploads.

Is there any drawbacks in making all my forms of type:
ENCTYPE="Multipart/Form-Data"?

Will this cause resource or security issues?

Thanks.
 
K

Kevin Spencer

No. It causes the form data to be sent in both binary and text format, in
order to upload a file.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
B

bruce barker

the payload will be much higher.

for two fields, instead of :

f1=value1&f2=value2

the payload will look like:

-----------------------------7d44bc1306d0
Content-Disposition: form-data; name="f1"

value1

-----------------------------7d44bc1306d0
Content-Disposition: form-data; name="f2"

value2
-----------------------------7d44bc1306d0

as the number of fields goes up, the more the cost.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top