We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2d8a74 commit a84f6ecCopy full SHA for a84f6ec
app/helpers/uploads_helper.rb
@@ -11,7 +11,8 @@ def upload_remote_url(blob)
11
# Gets a list of MIME types allowed to be uploaded
12
# @return [Array<String>]
13
def allowed_upload_mime_types
14
- Rails.application.config.active_storage.web_image_content_types
+ fallback_types = Rails.application.config.active_storage.web_image_content_types
15
+ SiteSetting['AllowedUploadTypes'].presence || fallback_types
16
end
17
18
# Gets a list of file extensions allowed to be uploaded
0 commit comments