Skip to content

Commit

Permalink
FC-2914 Fix to add DNG to available MIME types...
Browse files Browse the repository at this point in the history
  • Loading branch information
Eliseo Dannunzio committed Sep 30, 2014
1 parent 137f947 commit a4982c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/cdn/s3.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@
<cfset stResult["content_type"] = getPageContext().getServletContext().getMimeType(arguments.file) />

<cfif not isdefined("stResult.content_type")>
<cfset stResult["content_type"] = "application/octet-stream" />
<cfif listfindnocase("jpg,jpeg",listlast(arguments.file,"."))>
<cfset stResult["content_type"] = "image/jpeg" />
</cfif>
Expand Down
3 changes: 2 additions & 1 deletion packages/farcry/file.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ $out:$
<cfset stMimes["dll"] = "application/octet-stream" />
<cfset stMimes["dmg"] = "application/octet-stream" />
<cfset stMimes["dms"] = "application/octet-stream" />
<cfset stMimes["dng"] = "image/x-adobe-dng" />
<cfset stMimes["doc"] = "application/msword" />
<cfset stMimes["dot"] = "application/msword" />
<cfset stMimes["docx"] = "application/vnd.openxmlformats-officedocument.wordprocessingml.document" />
Expand Down Expand Up @@ -718,7 +719,7 @@ $out:$

<cfset var fileinfo = getFileProperties(arguments.filename) />

<cfreturn fileinfo.size />
<cfreturn fileinfo.size />
</cffunction>

</cfcomponent>

0 comments on commit a4982c5

Please sign in to comment.