From da43d1e289c584698a8cf1e6917d6fd62b6f70ef Mon Sep 17 00:00:00 2001 From: Alan Raison Date: Mon, 19 Feb 2024 14:13:27 +0000 Subject: [PATCH] fix: update file linkUrl --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 0584f2d..d4ae99f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -162,7 +162,7 @@ export default class MulterGoogleCloudStorage implements multer.StorageEngine { contentType: blob.metadata.contentType, size: blob.metadata.size, uri: `gs://${blob.metadata.bucket}/${blobFile.destination}${filename}`, - linkUrl: `https://storage.googleapis.com/${blob.metadata.bucket}/${blobFile.destination}${filename}`, + linkUrl: `${this.gcsStorage.apiEndpoint}/${blob.metadata.bucket}/${blobFile.destination}${filename}`, selfLink: blob.metadata.selfLink, //metadata: blob.metadata })