Can getID3() be used to verify a user uploaded file?
-
- User
- Posts:1
- Joined:Mon Feb 20, 2012 12:02 am
- Are you a spambot?:no
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.
-
- getID3() v1 developer
- Posts:1477
- Joined:Fri May 04, 2001 4:00 pm
- Are you a spambot?:no
- Location:Northern Ontario, Canada
- Contact:
Re: Can getID3() be used to verify a user uploaded file?
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).