Hello all - got a quick question I'm hoping someone can help me out with. I've got an image upload function working perfectly well, using getimagesize() to make sure that the uploading file is, first off, an image; then by testing the value of the second index in the resultant array to make sure that the image is either a .jpg or .gif.

So, is there a function like getimagesize() that'll work for .mov and .avi files? I want to be able to upload both file type, but not like mp4's and other movie formats. I've run a couple searches on the board here and it looks like the vast majority of sucessful uploads involving movie files simply don't test the file type. Maybe I'm just being paranoid, but I'd like a little more control over that.

Any help is most appreciated and will earn the giver the satisfaction that for a whole day I will think they're a good person. 😃

Thanks in advance!

    There isn't native support in PHP for doing so, but you can extend the support using http://ffmpeg-php.sourceforge.net/

    EDIT: Just found this too: [url]http://www.getid3.org/[/url]

    Hope that helps.

    (Also, there's a problem with the forum... [url]http://********id3.org/[/url] anyone know why?)

      Thanks for the links - looking now!

        Write a Reply...