This Upload Form works well in Google, but not IE or FF

The upload script I’m using performs successfully in Google, but not in IE or FF.
In Google, it doesn’t fill the box with the path(see image), but it shows a message of successful upload.
In IE, it fills the box with the path, but the path begins with C:\fakepath\… and doesn’t upload or show unsuccessful upload message.
In FF, my computer shows something’s uploading, but it doesn’t appear in AmazonS3 nor does it fill the box, or show any message.
I’m not interested in starting over with a different script, I’d just like to get some suggestions/ideas/remedy for this one, please.
Thanks for any help


<?php
session_start();
require_once 'phps3integration_lib.php';
$message = "";
if (@$_POST['submit'] != "") {
$allowed_ext = array("gif", "jpeg", "jpg", "png", "pdf", "doc", "docs", "zip" , "mov", "flv", "mp4", "3gp", ");
$extension = end(explode(".", $_FILES["fileBrowser"]["name"]));
if (($_FILES["fileBrowser"]["size"] < 10485760) && in_array($extension, $allowed_ext)) {
if ($_FILES["fileBrowser"]["error"] > 0) {
//$message.="There is some error in upload, see: " . $_FILES["fileBrowser"]["error"] . "<br>";//Enable this to see actual error
$message.="There is some error in upload. Please try after some time.";
} else {
$uploaded_file = uploaded_file_to_s3($_FILES["fileBrowser"], "uploads", true);
if ($uploaded_file != FALSE) {
$user_name = @$_POST['user_name'] != "" ? @$_POST['user_name'] : "Anonymous";
$form_data = array(
'file' => $uploaded_file,
'user_name' => $user_name,
'type' => 'file'
);
mysql_query("INSERT INTO `phps3files` (`id`, `file`, `user_name`, `type`) VALUES (NULL, '" . $uploaded_file . "', '" . $user_name . "', 'file')") or die(mysql_error());
$message.= "File Successfully Uploaded.";
} else {
$message.="There is some error in upload. Please try after some time.";
}
}
} else {
$message.= "Upload Unsuccessful. Please Contact Administrator";
}
}
?>

<?php
require_once 'header.php';
?>

<html>
<head><br /><br /><br />
<font size="6" color="#c53800"><b>Upload:</b></font><br /><br />
</head>

<style>
button { background: #bi4e4e; color: red; }
</style>


<body>
<?php require_once 'header.php'; ?>

<!--<fieldset>-->
<form action="upload_file.php" method="post" enctype="multipart/form-data">

<div class="control-group">
<label for="file" class="control-label"><font size="6" color="#454545"><b>Choose a file to upload:</b></font></label>
<button type="button" onclick="getFilePathFromDialog();">ChooseFile</button>
<input type="text" id="filePath" name="filePath"/><br />
<input type="file" id="fileBrowser" name="fileBrowser"style="visibility:hidden; display:none;" />
<?php //echo form_error('file'); ?>
</div>

<script>
function getFilePathFromDialog() {
document.getElementById('fileBrowser').click();
document.getElementById('filePath').value =
document.getElementById('fileBrowser').value;
}
</script>
</html>

<div class="control-group">
<label></label>
<div class='controls'>
<input type="image" src="/images/upload.png" name="submit" value="Upload">
</div>
</div>
</form>


<?php
if ($message != "" || @$_SESSION['message'] != "") {
?>
<div class="alert alert-success">
<?php echo $message; ?>
<?php
echo @$_SESSION['message'];
@$_SESSION['message'] = '';
?>
</div>
<?php
}
?>
<div>
</div>

<?php require_once 'footer.php'; ?>