You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This generates an invalid URL if your bucket isn't in the default region.
The fix (I'll make a pull request if if I can find time) -
region = @uploader.fog_credentials[:region].to_s
# if directory is a valid subdomain, use that style for access
if valid_subdomain
s3_subdomain = if @uploader.fog_aws_accelerate
"s3-accelerate"
else
(region =='' || region == DEFAULT_S3_REGION) ? 's3' : "s3.#{region}"
end
"#{protocol}://#{@uploader.fog_directory}.#{s3_subdomain}.amazonaws.com/#{encoded_path}"
else
...
The text was updated successfully, but these errors were encountered:
Hi,
Please see changes made here - #2439
This doesn't account for cases where
valid_subdomain
is true, and this code is executed:This generates an invalid URL if your bucket isn't in the default region.
The fix (I'll make a pull request if if I can find time) -
The text was updated successfully, but these errors were encountered: