File Upload for video only
Posted: Sun Oct 26, 2008 10:50 am
Hello,
I just set up the script for uploading files to my server. This can be dangerous territory, though, and I want to make sure that only video files are uploaded. I know how to restrict files to image files only (ie jpg, gif, etc) but I do not know how to restrict files to video files only (ie .mov, .avi, etc).
Can someone give me a quick code sample showing me how to do this? Thanks!
Legs
I just set up the script for uploading files to my server. This can be dangerous territory, though, and I want to make sure that only video files are uploaded. I know how to restrict files to image files only (ie jpg, gif, etc) but I do not know how to restrict files to video files only (ie .mov, .avi, etc).
Can someone give me a quick code sample showing me how to do this? Thanks!
Legs