I’m having some trouble to make the strapi-provider-upload-aws-s3 to work with the LocalStack service. The S3 bucket is created correctly but when I try to upload a file via Strapi pointing to the localhost a get an error.
I set the endpoint param in the plugin configuration but didn’t work
Did you find any solution for this? I’m running into the same problem.
I think the problem is that Strapi (specifically strapi-provider-upload-aws-s3) doesn’t support path-style addressing, this is http://localhost:4566/, that is the way to connect the local s3 service from the host.
I’m a bit lost with this, I cannot find a solution to connect my dev strapi project to the local s3 container.
You can add forcePathStyle: env('AWS_S3_PATH_STYLE', false), as given below into your middlewares.ts and then you would add a env variable for local development with AWS_S3_PATH_STYLE=true. Note that this .ts references a newer version of strapi, but it might be also applicable without s3Options: { to your case.
I’m not sure about the exact reason, but I think that those options are then also applied for the s3 configuration.