Skip to main content
Participant
September 3, 2008
Question

cffile upload accept parameter

  • September 3, 2008
  • 2 replies
  • 414 views
Hi,

If I want to upload only video type files what is the best way to give in cffile accept parameter as it could be any sort of video file and reject rest others.

Thanks
This topic has been closed for replies.

2 replies

BKBK
Community Expert
Community Expert
September 6, 2008
You may also use application/octet-stream if you don't know which specific types are going to be uploaded. It is a generic content type for binary files.


Inspiring
September 4, 2008
there is no one mime type for all possible video file formats - you will
have to list the mime types of files you want to accept.

check mime types here: http://www.w3schools.com/media/media_mimeref.asp
look at the bottom of the first table for video/xxxxxxxx types.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/