homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / Apple Software and Technology
Forum Library, Charter, Moderators: travelin cat

Apple Software and Technology Forum

Safari file upload bugs / quirks
Two specific workarounds

10+ Year Member

Msg#: 3300569 posted 11:00 pm on Apr 2, 2007 (gmt 0)

I just had to solve two issues with file upload bugs / quirks in Safari. This issue has come up here before, but never been answered as far as I know, so I'm posting my solutions for posterity.

Issue #1. Files don't get uploaded

This happens if you set display:none in your onsubmit function, which is often used to hide the form during the upload. The part of the form that you hide will not be submitted. To avoid this problem, you can set display:none in an onclick event for your submit button, or avoid display:none altogether.

Issue #2. Safari intermittantly hangs during file upload

This was discussed here [webmasterworld.com...] with no solution.

It looks like the form is submitting, but it never makes it. Just sits there. This seems to have something to do with keep-alive. It's solved by adding an http header "Connection: close" to the page with the form. Note this is added to the page with the form on it-- not the page that you are submitting to.

Well I hope someday somebody sees this and it saves them the two hours I just lost.



WebmasterWorld Senior Member whoisgregg us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 3300569 posted 4:41 pm on Apr 3, 2007 (gmt 0)

Thanks for posting zomega42!

Global Options:
 top home search open messages active posts  

Home / Forums Index / WebmasterWorld / Apple Software and Technology
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved