Convert HEIC uploads to JPG by default (#10395)

This commit is contained in:
Penar Musaraj
2020-08-07 11:17:50 -04:00
committed by GitHub
parent c5c5bb4fad
commit 86cb5803ba
3 changed files with 2 additions and 9 deletions

View File

@ -174,11 +174,6 @@ RSpec.describe UploadCreator do
let(:filename) { "should_be_jpeg.heic" }
let(:file) { file_from_fixtures(filename, "images") }
before do
SiteSetting.convert_heif_to_jpeg = true
SiteSetting.authorized_extensions = 'jpg|heic'
end
it 'should store the upload with the right extension' do
expect do
UploadCreator.new(file, filename).create_for(user.id)