diff options
Diffstat (limited to 'lib/bulk_imports/file_downloads/validations.rb')
-rw-r--r-- | lib/bulk_imports/file_downloads/validations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bulk_imports/file_downloads/validations.rb b/lib/bulk_imports/file_downloads/validations.rb index e1844843408..14f036e469c 100644 --- a/lib/bulk_imports/file_downloads/validations.rb +++ b/lib/bulk_imports/file_downloads/validations.rb @@ -45,7 +45,7 @@ module BulkImports def validate_size!(size) if size.blank? raise_error 'Missing content-length header' - elsif size.to_i > file_size_limit + elsif file_size_limit > 0 && size.to_i > file_size_limit raise_error format( "File size %{size} exceeds limit of %{limit}", size: ActiveSupport::NumberHelper.number_to_human_size(size), |