mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 03:06:53 +08:00
FIX: All multisite upload paths should start with /uploads/default/.. (#6707)
This commit is contained in:
@ -42,7 +42,7 @@ module FileStore
|
||||
options[:content_disposition] = "attachment; filename=\"#{filename}\"" unless FileHelper.is_supported_image?(filename)
|
||||
# if this fails, it will throw an exception
|
||||
|
||||
path.prepend(File.join(upload_path, "/")) if RailsMultisite::ConnectionManagement.current_db != "default"
|
||||
path.prepend(File.join(upload_path, "/")) if Rails.configuration.multisite
|
||||
path = @s3_helper.upload(file, path, options)
|
||||
|
||||
# return the upload url
|
||||
|
Reference in New Issue
Block a user