473,394 Members | 1,641 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,394 software developers and data experts.

enctype="multipart/form-data" performance?

Rob
I've got quite an already complex form to which I need to add a upload photo
facility. I know how to do this but wondered if adding the form tag to
include enctype="multipart/form-data" makes a big performance difference to
the form when a photo isn't been uploaded?

Thanks, Rob.
Oct 28 '07 #1
4 2461
I doubt it, if there isn't any multipart data to encode.
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"Rob" wrote:
I've got quite an already complex form to which I need to add a upload photo
facility. I know how to do this but wondered if adding the form tag to
include enctype="multipart/form-data" makes a big performance difference to
the form when a photo isn't been uploaded?

Thanks, Rob.
Oct 28 '07 #2
"Rob" <rob_nicholson@nospam_unforgettable.comwrote in message
news:mJ****************@newsfe7-win.ntli.net...
I've got quite an already complex form to which I need to add a upload
photo
facility. I know how to do this but wondered if adding the form tag to
include enctype="multipart/form-data" makes a big performance difference
to
the form when a photo isn't been uploaded?
It won't make a great deal of difference. Certainly by far the biggest cost
will the time it takes to send the extra characters over the wire but
that'll be small change if occasionally the data contains a photo.

If it is a real concern then onsubmit event of the form you could test the
photo field value to see if it contains a file name then set the enctype
(encoding in JScript on IE) to your prefered type.
--
Anthony Jones - MVP ASP/ASP.NET
Oct 28 '07 #3
"Rob" <rob_nicholson@nospam_unforgettable.comwrote in message
news:mJ****************@newsfe7-win.ntli.net...
I've got quite an already complex form to which I need to add a upload
photo facility. I know how to do this but wondered if adding the form tag
to include enctype="multipart/form-data" makes a big performance
difference to the form when a photo isn't been uploaded?
None at all.
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 28 '07 #4
Rob
>difference to the form when a photo isn't been uploaded?
>
None at all.
Thanks all, I'll give it a go.

Cheers, Rob.
Oct 30 '07 #5

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

Similar topics

5
by: John Oliver | last post by:
I'd like the email produced by FormMail to show a specific From: address rather than postmaster@server.host.name Googling isn't helping me... not sure what to look for :-( -- * John Oliver ...
4
by: LinuxNT | last post by:
Good mornin' colleagues! I have a problem with a javascript code. I attempt to program a mini application with javascript. This application is part of a frameset. I select three fields in this...
1
by: Lars Netzel | last post by:
I have an aspx page that contains a usercontrol as header on all pages. That usercontrol has a few linkbuttons... sometimes when I press either of them I get this message in the top of the screen...
13
by: Noa | last post by:
Hi I have a page that looks like that: <form name="kuku1" action ="anotherpage.html" > <input name="name"> <input name="kuku2"> </form> As far as i know, "getAttribute" should return a...
13
by: kurtj | last post by:
Hello Gurus: I have a validation script (below) that is somehow messed up. If the Name field is blank, I get the alert message, then the browser window goes to a blank document with the word...
3
by: rkhurana | last post by:
Hi I am writing a JSF application that uses some third party charts. While I can see the chart but the javascript that is supposed to calla function to update chart periodically has a problem. It...
5
by: pilsdumps | last post by:
I have a parent and child class: parent: #!/usr/local/bin/perl -w #class clFormMaker package clFormMaker; sub new { #constructor
0
by: daryl | last post by:
<code> <body> <h1>Reverse String</h1><hr /> <?php $ReverseString = $_GET; if (!isset($_GET)) echo "<p>Enter the string you want to reverse.</p>"; else{ $ForwardString = $$_GET; ...
6
by: daryl | last post by:
Howdy, just wondering if someone can help me get this form working. Everything is right, I think, except for the autoglobal. <body> <h1>Reverse String</h1><hr /> <?php $ReverseString =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.