Forum Moderators: travelin cat
works in Safari:
formObj.submit();
fileInputObjToHide.style.display = 'none';
doesn't work in safari:
fileInputObjToHide.style.display = 'none';
formObj.submit();
The older post also references an article stating that safari can hang 30-40 percent of the time when you upload. I haven't looked into that one that much except to say I tried the solution in the post (using a connection close http header on the form page) and it didnt work. anyone known of a fix for this? at the moment i'm using php and in lieu of posting a lot of code heres the headers im sending (most are to prevent caching):
<?php
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header('Connection: close');
?>
And, Welcome to WebmasterWorld [webmasterworld.com]!