Browse Source

Merge pull request #9858 from imscytha/fix/gcs-signed-url

fix(GCS): set the response headers accordingly
pull/9937/head
Pranav C 3 days ago committed by GitHub
parent
commit
3e86daa612
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      packages/nocodb/src/plugins/gcs/Gcs.ts

3
packages/nocodb/src/plugins/gcs/Gcs.ts

@ -179,7 +179,8 @@ export default class Gcs implements IStorageAdapterV2 {
version: 'v4', version: 'v4',
action: 'read', action: 'read',
expires: Date.now() + expiresInSeconds * 1000, expires: Date.now() + expiresInSeconds * 1000,
extensionHeaders: pathParameters, responseDisposition: pathParameters?.ResponseContentDisposition,
responseType: pathParameters?.ResponseContentType
}; };
const [url] = await this.storageClient const [url] = await this.storageClient

Loading…
Cancel
Save