summaryrefslogtreecommitdiff
path: root/lib/api/helpers/file_upload_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/helpers/file_upload_helpers.rb')
-rw-r--r--lib/api/helpers/file_upload_helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers/file_upload_helpers.rb b/lib/api/helpers/file_upload_helpers.rb
index dd551ec2976..751972b44f0 100644
--- a/lib/api/helpers/file_upload_helpers.rb
+++ b/lib/api/helpers/file_upload_helpers.rb
@@ -5,7 +5,7 @@ module API
module FileUploadHelpers
def file_is_valid?
filename = params[:file]&.original_filename
- filename && ImportExportUploader::EXTENSION_WHITELIST.include?(File.extname(filename).delete('.'))
+ filename && ImportExportUploader::EXTENSION_ALLOWLIST.include?(File.extname(filename).delete('.'))
end
def validate_file!