Revert "FEATURE: admin/user exports are compressed using the zip format (#7784)"

This reverts commit 8b2580e20fc508f4e639210f7e64cbf096f95cfc.
This commit is contained in:
romanrizzi
2019-07-10 11:38:51 -03:00
parent 90fcdad3cd
commit f89bd55576
14 changed files with 30 additions and 89 deletions

View File

@ -22,14 +22,14 @@ describe Validators::UploadValidator do
it "allows 'gz' as extension when uploading export file" do
SiteSetting.authorized_extensions = ""
expect(UploadCreator.new(csv_file, "#{filename}.zip", for_export: true).create_for(user.id)).to be_valid
expect(UploadCreator.new(csv_file, "#{filename}.gz", for_export: true).create_for(user.id)).to be_valid
end
it "allows uses max_export_file_size_kb when uploading export file" do
SiteSetting.max_attachment_size_kb = "0"
SiteSetting.authorized_extensions = "zip"
SiteSetting.authorized_extensions = "gz"
expect(UploadCreator.new(csv_file, "#{filename}.zip", for_export: true).create_for(user.id)).to be_valid
expect(UploadCreator.new(csv_file, "#{filename}.gz", for_export: true).create_for(user.id)).to be_valid
end
describe 'when allow_staff_to_upload_any_file_in_pm is true' do