Skip to content

Commit c0e0fa9

Browse files
committed
This codepath isn't necessary
1 parent bf6baae commit c0e0fa9

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
@@ -269,12 +269,6 @@ function extractKeyFromS3Url(fileUrlOrKey) {
269269
return fileUrlOrKey;
270270
}
271271

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

0 commit comments

Comments
 (0)