Browse Source

fix(GCS): set the response headers accordingly

use the appropriate properties for setting the response headers in
options object when requesting the signed url (based on the
GetSignedUrlConfig interface).

Reference:
https://cloud.google.com/nodejs/docs/reference/storage/latest/storage/getsignedurlconfig

related to #9350
pull/9858/head
Roni Bytyqi 2 weeks ago
parent
commit
cc564fa211
  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',
action: 'read',
expires: Date.now() + expiresInSeconds * 1000,
extensionHeaders: pathParameters,
responseDisposition: pathParameters?.ResponseContentDisposition,
responseType: pathParameters?.ResponseContentType
};
const [url] = await this.storageClient

Loading…
Cancel
Save