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

Comments and questions that doest not fit anywhere else.
Locked
CSobol
User
Posts: 1
Joined: Mon Feb 20, 2012 12:02 am
Are you a spambot?: no

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

Post by CSobol » Mon Feb 20, 2012 12:20 am

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.

James Heinrich
getID3() v1 developer
Posts: 1475
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?

Post by James Heinrich » Mon Feb 20, 2012 2:04 am

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).

Locked