Page 1 of 1

Can getID3() be used to verify a user uploaded file?

Posted: Mon Feb 20, 2012 12:20 am
by CSobol
I am working on a project which would allow users to upload files which others can then download, so I need to verify that they are in fact MP3s and not some other type of file. Can getID3 perform this task? It looks like it will be very useful to me regardless, but I need to know if I need to keep looking for something to perform this task for me.

Re: Can getID3() be used to verify a user uploaded file?

Posted: Mon Feb 20, 2012 2:04 am
by James Heinrich
getID3() will indeed identify a file based on its contents. It will identify any of the few dozen file formats as listed on www.getid3.org (or at least you'll know it's not one of those).