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
Clarify S3 URL construction priority for compatible providers (#3055)
* Clarify S3 URL construction priority for compatible providers
* Apply suggestions from code review
Co-authored-by: Pierre Wizla <pwizla+github@gmail.com>
Copy file name to clipboardExpand all lines: docusaurus/docs/cms/configurations/media-library-providers/amazon-s3.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -276,23 +276,23 @@ In this case, use `s3.yourRegion.amazonaws.com` (without the bucket name) for th
276
276
277
277
## S3-compatible services
278
278
279
-
The AWS S3 provider works with S3-compatible services by using the `endpoint` option. The provider automatically constructs correct URLs for S3-compatible services that return incorrect `Location` formats for multipart uploads (e.g., IONOS, MinIO).
279
+
The AWS S3 provider works with S3-compatible services by using the `endpoint` option. When an S3-compatible provider returns a valid URL in its upload response, the provider trusts that URL as-is, preserving the correct format (virtual-hosted or path-style) for the provider. For providers that return malformed URLs in multipart upload responses (e.g., IONOS, some MinIO configurations), the provider falls back to constructing the URL from the `endpoint` configuration.
280
280
281
281
Some providers require `forcePathStyle: true` in the `s3Options`. This option is needed when the provider does not support virtual-hosted-style URLs (e.g., `bucket.endpoint.com`), and instead uses path-style URLs (e.g., `endpoint.com/bucket`).
282
282
283
283
The following table shows compatibility settings for each provider:
0 commit comments