|
Posted by Shelly on 09/29/41 11:22
I had a problem with uploading images in that some files did not have a type
of "image/something" from the
$_FILES['the_field_name']['type'] which I used for my verification.
Someone (THANK YOU) suggested using getimagesize() which has the third
element in the returned array being a number representing the image type.
That worked perfectly for me, enabling me to check that it was, indeed, an
image file that I had uploaded.
Now I ask if there is a similar function call for audio types. I want to be
able to verify that the file I upload is, indeed, an audio file. I would
like this function because I am reasoning that if the "type" obtained from
$_FILES['the_field_name']['type'] is not reliable for images, then it
probably isn't reliable for audio either.
Shelly
Navigation:
[Reply to this message]
|