add mime type to Coldfusion 10 server

Community Beginner ,
Jun 13, 2017 Jun 13, 2017

Copy link to clipboard

Copied

I understand how to upload JPG files and Audio files using CFFILE. But no success uploading a video MP4 file. The Coldfusion server is rejecting that mime. In Coldfusion 10, am I to use CF Admin to add an acceptable mime type for upload to the server? Or is there an external file list of mime types CF server points to. How exactly is a new mime type added? I want to upload .MP4 videos using CFFILE. Right now ACCEPT="video/mp4" does not work. Thanks.

Views

1.8K

Likes

Translate

Translate

Report

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

correct answers 1 Correct Answer

Community Beginner , Jun 21, 2017 Jun 21, 2017
I found the correct answer for my problem. My IIS server already had the mime .mp4. For my issue, I needed to set the CFFILE tag to STRICT="false" to allow mime type video/mp4 to upload. Otherwise, the server rejected the video upload. Coldfusion 10 has a default of STRICT="true". I did not have the same issue with image/jpeg or audio/mpeg. Only video/mp4 caused me problems.

Likes

Translate

Translate
Advocate ,
Jun 14, 2017 Jun 14, 2017

Copy link to clipboard

Copied

See my answer in this thread:

https://forums.adobe.com/thread/2277792

Likes

Translate

Translate

Report

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 Beginner ,
Jun 21, 2017 Jun 21, 2017

Copy link to clipboard

Copied

LATEST

I found the correct answer for my problem. My IIS server already had the mime .mp4. For my issue, I needed to set the CFFILE tag to STRICT="false" to allow mime type video/mp4 to upload. Otherwise, the server rejected the video upload. Coldfusion 10 has a default of STRICT="true". I did not have the same issue with image/jpeg or audio/mpeg. Only video/mp4 caused me problems.

Likes

Translate

Translate

Report

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