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 f767cde commit 050ec8aCopy full SHA for 050ec8a
api/server/services/Files/S3/crud.js
@@ -267,12 +267,6 @@ function extractKeyFromS3Url(fileUrlOrKey) {
267
return fileUrlOrKey;
268
}
269
270
- if (endpoint?.trim() && forcePathStyle) {
271
- const endpointUrl = new URL(endpoint)
272
- const startPos = endpointUrl.pathname.length + (endpointUrl.pathname.endsWith('/') ? 2 : 1) + bucketName.length + 1;
273
- return fileUrlOrKey.substring(startPos);
274
- }
275
-
276
return fileUrlOrKey.startsWith('/') ? fileUrlOrKey.substring(1) : fileUrlOrKey;
277
278
0 commit comments