mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 08:43:25 +08:00
FIX: Add bucket folder path only if not exists
This commit is contained in:
parent
1d3375b176
commit
be0555cc17
|
@ -238,7 +238,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, path) if @s3_bucket_folder_path && path !~ /^#{@s3_bucket_folder_path}\//
|
||||
path
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user