
Gregor - 2006-02-10 20:16:24
I've noticed that the upload procedes regardless to the MIME tipe.
I want to allow only images and flash animations like:
$upload = new Upload($datoteka);
$upload->allowed = array( "image/gif",
"image/jpeg",
"image/pjpeg",
"image/png",
"application/x-shockwave-flash");
But it actually accepts any MIME. It accepts any mime type even if I don't override the allowed constant.
Is it a bug a feature missing or am I doing something wrong?
Thanx Greg