FIX: Add bucket folder path only if not exists

This commit is contained in:
Vinoth Kannan 2019-05-15 15:37:40 +05:30
parent 1d3375b176
commit be0555cc17

View File

@ -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