0

I developped a cms system to upload images with php to a mysql database and a upload folder on the server.
Firefox version 5.0.1 for MAC and earlier have no problems with file uploading through the script. But after that version it is impossible to upload images bigger then 250kb. The page where the customer chooses his image for upload stalls and the form is not sent to the actual upload script, which should validate and process the image. This problem only occurs in Firefox, all other browsers work just fine!
I tried to run the same script with Firefox on a PC and everything works fine too. So it is a Mac related problem.

You can try for yourself to see what happens in the following basic script, which i stripped for testing reasons (if you don't get a succes message it means that you are still hanging on the image_upload page and nothing has happened) :
http://siteways.net/test_upload/image_upload.php

the code for the simple form (image_upload.php):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Website Maintenance</title>
<link href="../css/admin.css" rel="stylesheet" type="text/css" />
<!--function for progress icon-->
<script language="JavaScript">
function setVisibility(id, visibility) {
document.getElementById(id).style.display = visibility;
}
</script>
</head>
<body>

<form action="update.php" method="post" enctype="multipart/form-data">

<table width="auto" align="center">
 <tr><td><h2>New Picture</h2></td></tr>
 <tr>
  <td> 
   <input type="file"  name="Foto" />
  </td>
 </tr>
</table><br /><br />

<table width="auto" align="center">
 <tr>
  <td>
   <input type="submit" onclick="setVisibility('progress_icon', 'inline');" name="edit" value="save"/>
  </td>
 </tr>
</table>

<!--div for showing progress icon-->
<div class="progress_icon" id="progress_icon" align="center">
 <table width="100%" border="0">
  <tr>
    <td align="center"><br />Uploading Image to our Database, please wait....</td>
  </tr>
 </table>
 <br />
</div>
</form>
</body>
</html>

And the update.php where you are supposed to get, but you don't if you use FF mac version;

<?php 
	$Foto	= $_FILES['Foto']['name'];
echo 'you have reached the upload page succesfully.<br />
	  you normally would have uploaded '. $Foto. ' to our datebase,<br />
	  but in this case it is just a testing page';	
?>

Edited by robjan: n/a

2
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by robjan
0

No, i was not able to solve this problem yet. So any suggestions would be welcome

0

Apparently FF has discovered the bug and the newly released version 10 is working properly again, with uploading images. So despite of being curious what the reason was for this issue, i guess this can be seen as problem solved.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.