Skip to content

Commit 050ec8a

Browse files
committed
This codepath isn't necessary
1 parent f767cde commit 050ec8a

File tree

1 file changed

+0
-6
lines changed
  • api/server/services/Files/S3

1 file changed

+0
-6
lines changed

api/server/services/Files/S3/crud.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,6 @@ function extractKeyFromS3Url(fileUrlOrKey) {
267267
return fileUrlOrKey;
268268
}
269269

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-
276270
return fileUrlOrKey.startsWith('/') ? fileUrlOrKey.substring(1) : fileUrlOrKey;
277271
}
278272
}

0 commit comments

Comments
 (0)