mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:04:11 +08:00
FIX: subfolder support for S3 CDN
This commit is contained in:
parent
5ed582551a
commit
0b8f6d3637
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user