File upload from mac shows no filename
Posted: Sun Jun 06, 2010 11:03 pm
I am growing bald because I am pulling my hair out on this one!
I am uploading a file from Flash using a FileReference object to the below php file:
The above works just fine on my pc but on my mac it behaves as my comments in my above code.
Does anyone have a clue as to why this works on the pc but not the mac?
Any help would be much appreciated.
I am uploading a file from Flash using a FileReference object to the below php file:
Code: Select all
session_start();
//$fileID=060620101856121; Saves file as 12787777.jpg
//$fileID="060620101856121"; Saves file as 060620101856121.jpg which should be correct with the session variable
$fileID=$_SESSION['fileID']; //Saves file as .jpg with out the file name
$newname=$fileID.".jpg";
$path="images/".$newname;
move_uploaded_file($_FILES['Filedata']['tmp_name'], $path);
echo "&upload_msg=".$path."&fileID=".$fileID."&"; //this echos the correct informationDoes anyone have a clue as to why this works on the pc but not the mac?
Any help would be much appreciated.