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 })