In Fog we can disable AWS’s enable_signature_v4_streaming: false. This helps when using S3-compatible hosting providers that don’t implement streaming. Without this option an error is raised saying "STREAMING-AWS4-HMAC-SHA256-PAYLOAD" is not implemented.
One workaround is doing the following:
module DisableFogSignatureV4Streaming
def fog_options
super.merge(enable_signature_v4_streaming: false)
end
end
AssetSync.configure do |config|
config.extend(DisableFogSignatureV4Streaming)
# …
end
To make this more robust, we could add a new option to asset_sync. Either:
A new fog_enable_signature_v4_streaming option.
A more general fog_options to add any extra option fog supports.
What do you think? I’d be happy to provide a pull-request if any of these solutions seem good.
In Fog we can disable AWS’s
enable_signature_v4_streaming: false
. This helps when using S3-compatible hosting providers that don’t implement streaming. Without this option an error is raised saying "STREAMING-AWS4-HMAC-SHA256-PAYLOAD" is not implemented.One workaround is doing the following:
To make this more robust, we could add a new option to
asset_sync
. Either:fog_enable_signature_v4_streaming
option.fog_options
to add any extra option fog supports.What do you think? I’d be happy to provide a pull-request if any of these solutions seem good.