Jump to content


very simple file works in IE but not Firefox?

  • Please log in to reply
2 replies to this topic

#1 arianhojat

  • Members
  • PipPipPip
  • Advanced Member
  • 235 posts

Posted 22 May 2006 - 06:10 PM

doh cant edit the title: meant 'very simple file upload works in IE but not Firefox?'...

using IE 6.0 and FF 1.5... i ran this simple script on our IIS server.
when i view the page on [a href=\"http://intranet:90/upload.php\" target=\"_blank\"]http://intranet:90/upload.php[/a] and i test uploading files, works quickly in IE.

But in FF, after i click submit, it slowly tries to submit it. bottom left corner of status bar says:
'Waiting for intranet' (and the tab 'square' where the Title is displayed says Loading...) I wait and the file never gets uploaded. Very weird to have a server side script issue run differently in FF?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

if( isset($_POST['submit']) )
    echo "SUBMITTING<br/>";

    foreach ($_FILES["filename"]["error"] as $key => $error) 
        if ($error == UPLOAD_ERR_OK) 
            $uploaddir = $_SERVER['DOCUMENT_ROOT'].'\\uploadFolder\\uploads\\';
            $tmp_name = $_FILES["filename"]["tmp_name"][$key];
            $name = $_FILES["filename"]["name"][$key];
            move_uploaded_file($tmp_name, "$uploaddir/$name");
            echo "Moved tmp_name=$tmp_name, name=$name, type=$type, size=$size<br/>";



<form name="upload" method="post" enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF'];?>">

File to upload: <br/>
<input type="file" name="filename[]" value="Upload1" />
<input type="file" name="filename[]" value="Upload2" />

<input type="submit" name="submit" value="Submit" />



#2 samshel

  • Members
  • PipPipPip
  • Advanced Member
  • 837 posts

Posted 23 May 2006 - 09:59 AM


i think the problem here is not with your script but the settings of your FF browser....check if only [a href=\"http://intranet\" target=\"_blank\"]http://intranet[/a] is working in FF, i guess it wont....Change Your connection settings to allow loal addresses


#3 arianhojat

  • Members
  • PipPipPip
  • Advanced Member
  • 235 posts

Posted 23 May 2006 - 12:55 PM

hm. intranet did work yesterday and today. but i messed with connection settings. instead of Direct Connection to internet. I used Auto-Detect Proxy settings for Network.
seems to work now in FF. thanx!

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users