View Single Post
Old 10-07-2007, 09:52 PM   #1 (permalink)
twells22
Platinum Lifetime Member
 
Last Online: 07-26-2008 10:36 AM
iTrader: (5)
Join Date: Dec 2006
Posts: 209
DNF$: 260
Location: Virginia
Country:


Coding question for video files?

I have a social script that allows users to upload videos to their "album" but I am having trouble setting the allowed file extensions. If you can, tell me what to do to allow wmv files and avi files.

Here is what the MIME section says:

"To successfully upload a file, the file must have an allowed filetype extension as well as an allowed MIME type. This prevents users from disguising malicious files with a fake extension. Separate MIME types with commas, for example: image/jpeg, image/gif, image/png, image/bmp"

Now this is what is in the field:

"image/jpeg, image/pjpeg, image/jpg, image/jpe, image/pjpg, image/x-jpeg, x-jpg, image/gif, image/x-gif, image/png, image/x-png, image/bmp, audio/mpeg, video/mpeg, video/x-msvideo, video/quicktime, application/x-shockwave-flash, "

What needs to be changed to allow avi and wmv video files?
twells22 is offline   Reply With Quote
Sponsored Links