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) :

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">
<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;

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

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

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

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

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

	$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';	

Recommended Answers

All 3 Replies

DId you get this resolved? I think I know a possible solution if not.

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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.