Added .htc file content type to white list
Added .htc file content type javascripts folder
This commit is contained in:
parent
ff901ca3d3
commit
a78bcdaf38
@ -9,7 +9,7 @@ class ThemeAssetUploader < CarrierWave::Uploader::Base
|
||||
end
|
||||
|
||||
def extension_white_list
|
||||
%w(jpg jpeg gif png css js swf flv eot svg ttf woff otf ico)
|
||||
%w(jpg jpeg gif png css js swf flv eot svg ttf woff otf ico htc)
|
||||
end
|
||||
|
||||
def self.url_for(site, path)
|
||||
|
@ -21,7 +21,7 @@ module Locomotive
|
||||
:media => [/^video/, 'application/x-shockwave-flash', 'application/x-swf', /^audio/, 'application/ogg', 'application/x-mp3'],
|
||||
:pdf => ['application/pdf', 'application/x-pdf'],
|
||||
:stylesheet => ['text/css'],
|
||||
:javascript => ['text/javascript', 'text/js', 'application/x-javascript', 'application/javascript'],
|
||||
:javascript => ['text/javascript', 'text/js', 'application/x-javascript', 'application/javascript', 'text/x-component'],
|
||||
:font => ['application/x-font-ttf', 'application/vnd.ms-fontobject', 'image/svg+xml', 'application/x-woff']
|
||||
}
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user