Skip to main content
June 13, 2017
Answered

add mime type to Coldfusion 10 server

  • June 13, 2017
  • 2 replies
  • 2489 views

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 has been closed for replies.
    Correct answer

    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
    June 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.

    Inspiring
    June 14, 2017

    See my answer in this thread:

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