daveg8 0 Newbie Poster

Hi-

I'm tyring to ensure that malicious files are not uploaded to my server along with user videos. I have the videos uploading fine and I'm already checking to see if the extension is either .avi, .mpg, or .mov. However, I am not currently able to prevent someone from renaming a file such as "file.exe" to "file.avi" and then uploading to my server. I'm using the php function getimagesize() to accomplish secure uploads with my images and I've got it working so that only real .bmp, .jpg, etc. can be uploaded. Is there a similar function to use with videos or an entirely different work-around that someone can suggest? Thanks for the help,

Dave

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.