We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cd0bbd1 + 6caa131 commit cbc60b3Copy full SHA for cbc60b3
packages/server/src/services/Attachments/utils.ts
@@ -1,7 +1,9 @@
1
import path from 'path';
2
import config from '@/config';
3
4
-
5
export const getUploadedObjectUri = (objectKey: string) => {
6
- return path.join(config.s3.endpoint, config.s3.bucket, objectKey);
7
-}
+ return new URL(
+ path.join(config.s3.bucket, objectKey),
+ config.s3.endpoint
8
+ ).toString();
9
+};
0 commit comments