send ico files with inline disposition
This commit is contained in:
parent
0a76bcb412
commit
bf27c6841c
4 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
# Extra methods for uploader
|
||||
module UploaderHelper
|
||||
IMAGE_EXT = %w[png jpg jpeg gif bmp tiff].freeze
|
||||
IMAGE_EXT = %w[png jpg jpeg gif bmp tiff ico].freeze
|
||||
# We recommend using the .mp4 format over .mov. Videos in .mov format can
|
||||
# still be used but you really need to make sure they are served with the
|
||||
# proper MIME type video/mp4 and not video/quicktime or your videos won't play
|
||||
|
|
|
@ -240,7 +240,7 @@ describe Group do
|
|||
|
||||
it "is false if avatar is html page" do
|
||||
group.update_attribute(:avatar, 'uploads/avatar.html')
|
||||
expect(group.avatar_type).to eq(["file format is not supported. Please try one of the following supported formats: png, jpg, jpeg, gif, bmp, tiff"])
|
||||
expect(group.avatar_type).to eq(["file format is not supported. Please try one of the following supported formats: png, jpg, jpeg, gif, bmp, tiff, ico"])
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -960,7 +960,7 @@ describe Project do
|
|||
|
||||
it 'is false if avatar is html page' do
|
||||
project.update_attribute(:avatar, 'uploads/avatar.html')
|
||||
expect(project.avatar_type).to eq(['file format is not supported. Please try one of the following supported formats: png, jpg, jpeg, gif, bmp, tiff'])
|
||||
expect(project.avatar_type).to eq(['file format is not supported. Please try one of the following supported formats: png, jpg, jpeg, gif, bmp, tiff, ico'])
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1260,7 +1260,7 @@ describe User do
|
|||
it 'is false if avatar is html page' do
|
||||
user.update_attribute(:avatar, 'uploads/avatar.html')
|
||||
|
||||
expect(user.avatar_type).to eq(['file format is not supported. Please try one of the following supported formats: png, jpg, jpeg, gif, bmp, tiff'])
|
||||
expect(user.avatar_type).to eq(['file format is not supported. Please try one of the following supported formats: png, jpg, jpeg, gif, bmp, tiff, ico'])
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue