Hi (again)
I have some php script that allows a user to upload a jpeg, gif or bmp file less than 1.4mb
when I tested this on my pc, works great, then my customer tested it from his mac (using safari) and tried to upload a 68k Jpg
this returned an error. I asked him to send me the image and my PC read it as a 5.72MB BMP file??? which is probably why the error occured.
Is this a cross platform compatibilty issue? how do i resolve it?
heres the bit of PHP that does the checking -
<?php
if (($_FILES["file"]["type"] == "image/gif")
|| ($_FILES["file"]["type"] == "image/pjpeg") || ($_FILES["file"]["type"] == "image/jpeg") || ($_FILES["file"]["type"] == "image/bmp")
&& ($_FILES["file"]["size"] < 1404800))
{
thanks for any help