Browse Source

fix: upload by url to buckets

pull/6711/head
mertmit 1 year ago
parent
commit
f3fefdefb5
  1. 1
      packages/nocodb/src/plugins/backblaze/Backblaze.ts
  2. 1
      packages/nocodb/src/plugins/gcs/Gcs.ts
  3. 1
      packages/nocodb/src/plugins/linode/LinodeObjectStorage.ts
  4. 1
      packages/nocodb/src/plugins/mino/Minio.ts
  5. 1
      packages/nocodb/src/plugins/ovhCloud/OvhCloud.ts
  6. 1
      packages/nocodb/src/plugins/s3/S3.ts
  7. 1
      packages/nocodb/src/plugins/scaleway/ScalewayObjectStorage.ts
  8. 1
      packages/nocodb/src/plugins/spaces/Spaces.ts
  9. 1
      packages/nocodb/src/plugins/upcloud/UpoCloud.ts
  10. 1
      packages/nocodb/src/plugins/vultr/Vultr.ts

1
packages/nocodb/src/plugins/backblaze/Backblaze.ts

@ -54,6 +54,7 @@ export default class Backblaze implements IStorageAdapterV2 {
.get(url, {
httpAgent: useAgent(url, { stopPortScanningByUrlRedirection: true }),
httpsAgent: useAgent(url, { stopPortScanningByUrlRedirection: true }),
responseType: 'arraybuffer',
})
.then((response) => {
uploadParams.Body = response.data;

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

@ -110,6 +110,7 @@ export default class Gcs implements IStorageAdapterV2 {
.get(url, {
httpAgent: useAgent(url, { stopPortScanningByUrlRedirection: true }),
httpsAgent: useAgent(url, { stopPortScanningByUrlRedirection: true }),
responseType: 'arraybuffer',
})
.then((response) => {
this.storageClient

1
packages/nocodb/src/plugins/linode/LinodeObjectStorage.ts

@ -53,6 +53,7 @@ export default class LinodeObjectStorage implements IStorageAdapterV2 {
.get(url, {
httpAgent: useAgent(url, { stopPortScanningByUrlRedirection: true }),
httpsAgent: useAgent(url, { stopPortScanningByUrlRedirection: true }),
responseType: 'arraybuffer',
})
.then((response) => {
uploadParams.Body = response.data;

1
packages/nocodb/src/plugins/mino/Minio.ts

@ -100,6 +100,7 @@ export default class Minio implements IStorageAdapterV2 {
.get(url, {
httpAgent: useAgent(url, { stopPortScanningByUrlRedirection: true }),
httpsAgent: useAgent(url, { stopPortScanningByUrlRedirection: true }),
responseType: 'arraybuffer',
})
.then((response) => {
uploadParams.Body = response.data;

1
packages/nocodb/src/plugins/ovhCloud/OvhCloud.ts

@ -53,6 +53,7 @@ export default class OvhCloud implements IStorageAdapterV2 {
.get(url, {
httpAgent: useAgent(url, { stopPortScanningByUrlRedirection: true }),
httpsAgent: useAgent(url, { stopPortScanningByUrlRedirection: true }),
responseType: 'arraybuffer',
})
.then((response) => {
uploadParams.Body = response.data;

1
packages/nocodb/src/plugins/s3/S3.ts

@ -60,6 +60,7 @@ export default class S3 implements IStorageAdapterV2 {
.get(url, {
httpAgent: useAgent(url, { stopPortScanningByUrlRedirection: true }),
httpsAgent: useAgent(url, { stopPortScanningByUrlRedirection: true }),
responseType: 'arraybuffer',
})
.then((response) => {
uploadParams.Body = response.data;

1
packages/nocodb/src/plugins/scaleway/ScalewayObjectStorage.ts

@ -103,6 +103,7 @@ export default class ScalewayObjectStorage implements IStorageAdapterV2 {
.get(url, {
httpAgent: useAgent(url, { stopPortScanningByUrlRedirection: true }),
httpsAgent: useAgent(url, { stopPortScanningByUrlRedirection: true }),
responseType: 'arraybuffer',
})
.then((response) => {
uploadParams.Body = response.data;

1
packages/nocodb/src/plugins/spaces/Spaces.ts

@ -53,6 +53,7 @@ export default class Spaces implements IStorageAdapterV2 {
.get(url, {
httpAgent: useAgent(url, { stopPortScanningByUrlRedirection: true }),
httpsAgent: useAgent(url, { stopPortScanningByUrlRedirection: true }),
responseType: 'arraybuffer',
})
.then((response) => {
uploadParams.Body = response.data;

1
packages/nocodb/src/plugins/upcloud/UpoCloud.ts

@ -53,6 +53,7 @@ export default class UpoCloud implements IStorageAdapterV2 {
.get(url, {
httpAgent: useAgent(url, { stopPortScanningByUrlRedirection: true }),
httpsAgent: useAgent(url, { stopPortScanningByUrlRedirection: true }),
responseType: 'arraybuffer',
})
.then((response) => {
uploadParams.Body = response.data;

1
packages/nocodb/src/plugins/vultr/Vultr.ts

@ -53,6 +53,7 @@ export default class Vultr implements IStorageAdapterV2 {
.get(url, {
httpAgent: useAgent(url, { stopPortScanningByUrlRedirection: true }),
httpsAgent: useAgent(url, { stopPortScanningByUrlRedirection: true }),
responseType: 'arraybuffer',
})
.then((response) => {
uploadParams.Body = response.data;

Loading…
Cancel
Save