You are here: Audio type « PHP Programming Language « IT news, forums, messages
Audio type

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация