kredd
07-02-2007, 10:18 AM
hello, not sure if the code below is the exact cause but i'll start with it before unloading a ton of code :) the code below works fine on a pc in IE7/FF2 but it breaks on a mac SF/FF...i *think* it might be the image/type????
($_FILES["uploaded_file"]["type"] == "image/jpeg")
if (($ext == "jpg") && ($_FILES["uploaded_file"]["type"] == "image/jpeg") && ($_FILES["uploaded_file"]["size"] < $max_size) || ($ext == "jpg") && ($_FILES["uploaded_file"]["type"] == "image/pjpeg") && ($_FILES["uploaded_file"]["size"] < $max_size)) {
do some stuff here....
} ELSE {
echo "Error: A problem occurred during file upload!";
print_r($_FILES['uploaded_file']);
}
the ELSE portion is firing and this is the error i get:
Error: A problem occurred during file upload!Array ( [name] => DSC_0360.JPG [type] => image/jpeg [tmp_name] => /tmp/phpmABpxj [error] => 0 [size] =>
2330313 )
at first FF on my pc was breaking and i added the "OR" statement to the "if" statement so it would test for 'jpeg' AND 'pjpeg'...then FF started working - that's why i'm thinking it may be breaking the mac browsers too...
any ideas? i may be barking up the wrong tree :o
thanks!
($_FILES["uploaded_file"]["type"] == "image/jpeg")
if (($ext == "jpg") && ($_FILES["uploaded_file"]["type"] == "image/jpeg") && ($_FILES["uploaded_file"]["size"] < $max_size) || ($ext == "jpg") && ($_FILES["uploaded_file"]["type"] == "image/pjpeg") && ($_FILES["uploaded_file"]["size"] < $max_size)) {
do some stuff here....
} ELSE {
echo "Error: A problem occurred during file upload!";
print_r($_FILES['uploaded_file']);
}
the ELSE portion is firing and this is the error i get:
Error: A problem occurred during file upload!Array ( [name] => DSC_0360.JPG [type] => image/jpeg [tmp_name] => /tmp/phpmABpxj [error] => 0 [size] =>
2330313 )
at first FF on my pc was breaking and i added the "OR" statement to the "if" statement so it would test for 'jpeg' AND 'pjpeg'...then FF started working - that's why i'm thinking it may be breaking the mac browsers too...
any ideas? i may be barking up the wrong tree :o
thanks!