mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: subfolder support for S3 CDN
This commit is contained in:
@ -182,7 +182,7 @@ class S3Helper
|
||||
end
|
||||
|
||||
def get_path_for_s3_upload(path)
|
||||
path = File.join(@s3_bucket_folder_path, path) if @s3_bucket_folder_path
|
||||
path = File.join(@s3_bucket_folder_path, Discourse.base_uri, path) if @s3_bucket_folder_path
|
||||
path
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user