We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf6baae commit c0e0fa9Copy full SHA for c0e0fa9
api/server/services/Files/S3/crud.js
@@ -269,12 +269,6 @@ function extractKeyFromS3Url(fileUrlOrKey) {
269
return fileUrlOrKey;
270
}
271
272
- if (endpoint?.trim() && forcePathStyle) {
273
- const endpointUrl = new URL(endpoint)
274
- const startPos = endpointUrl.pathname.length + (endpointUrl.pathname.endsWith('/') ? 2 : 1) + bucketName.length + 1;
275
- return fileUrlOrKey.substring(startPos);
276
- }
277
-
278
return fileUrlOrKey.startsWith('/') ? fileUrlOrKey.substring(1) : fileUrlOrKey;
279
280
0 commit comments