From 5f816814ca5f9880cd30f18af7e95a1d1b195bd2 Mon Sep 17 00:00:00 2001 From: Fernando Possebon Date: Fri, 3 Oct 2025 09:04:59 -0300 Subject: [PATCH] Fix S3/Backblaze upload failure by enabling path-style addressing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add UsePathStyle option to S3 client configuration - Required for S3-compatible services like Backblaze B2 - Restores functionality lost in AWS SDK v1 to v2 migration - Compatible with Amazon S3, Backblaze, and arm64 architecture Fixes #140 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- internal/integration/storage/s3.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/integration/storage/s3.go b/internal/integration/storage/s3.go index a2e9bed9..6fb57a60 100644 --- a/internal/integration/storage/s3.go +++ b/internal/integration/storage/s3.go @@ -43,7 +43,11 @@ func createS3Client( return nil, fmt.Errorf("error initializing storage config: %w", err) } - s3Client := s3.NewFromConfig(conf) + // Create S3 client with path-style addressing enabled + // This is required for S3-compatible services like Backblaze + s3Client := s3.NewFromConfig(conf, func(o *s3.Options) { + o.UsePathStyle = true + }) return s3Client, nil }