From d46c78c85efea6fd083545f7b6b4ccb65a9f3c72 Mon Sep 17 00:00:00 2001 From: Nastia Gorokhova-Alekseeva Date: Tue, 29 Nov 2022 15:05:26 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B8=D0=BD=D0=B8=D0=BC=D0=B0?= =?UTF-8?q?=D0=B5=D0=BC=20=D0=BA=D0=BB=D1=8E=D1=87=20force=5Fpath=5Fstyle?= =?UTF-8?q?=20=D0=B4=D0=BB=D1=8F=20AWS=20=D0=BA=D0=BB=D0=B8=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/paperclip/storage/no_cache_s3.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/paperclip/storage/no_cache_s3.rb b/lib/paperclip/storage/no_cache_s3.rb index 14f4590..54ed56e 100644 --- a/lib/paperclip/storage/no_cache_s3.rb +++ b/lib/paperclip/storage/no_cache_s3.rb @@ -36,7 +36,7 @@ module Paperclip @key_template = key_template[1..-1] if key_template.start_with?('/') # rubocop:disable Style/SlicingWithRange @stores = options.fetch(:stores).each_with_object({}) do |(store_id, config), stores| stores[store_id.to_sym] = ::Aws::S3::Resource.new(client: ::Aws::S3::Client.new( - config.slice(:access_key_id, :secret_access_key, :endpoint, :region) + config.slice(:access_key_id, :secret_access_key, :endpoint, :region, :force_path_style) )).bucket(config[:bucket]) end @store_ids = options[:stores].keys.map(&:to_sym)