Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cffile upload accept parameter

Explorer ,
Sep 03, 2008 Sep 03, 2008
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
TOPICS
Getting started
396
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 03, 2008 Sep 03, 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/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 05, 2008 Sep 05, 2008
LATEST
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.


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources