468,727 Members | 1,601 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,727 developers. It's quick & easy.

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 2284
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by John Oliver | last post: by
4 posts views Thread by LinuxNT | last post: by
1 post views Thread by Lars Netzel | last post: by
9 posts views Thread by bryonone | last post: by
reply views Thread by zhoujie | last post: by
xarzu
1 post views Thread by xarzu | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.