Skip to main content
Jun 13, 2017 11:35 PM UTC
Answered

add mime type to Coldfusion 10 server

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.

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Correct answer
    Jun 21, 2017 5:38 PM UTC

    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.

    2 replies

    Correct answer
    Jun 21, 2017 5:38 PM UTC

    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.

    Translate
    Inspiring
    Jun 14, 2017 8:03 AM UTC

    See my answer in this thread:

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

    Translate