Skip to content

Commit a84f6ec

Browse files
committed
switched allowed_upload_mime_types to AllowedUploadTypes
1 parent f2d8a74 commit a84f6ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/helpers/uploads_helper.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ def upload_remote_url(blob)
1111
# Gets a list of MIME types allowed to be uploaded
1212
# @return [Array<String>]
1313
def allowed_upload_mime_types
14-
Rails.application.config.active_storage.web_image_content_types
14+
fallback_types = Rails.application.config.active_storage.web_image_content_types
15+
SiteSetting['AllowedUploadTypes'].presence || fallback_types
1516
end
1617

1718
# Gets a list of file extensions allowed to be uploaded

0 commit comments

Comments
 (0)