Browse Source

fix: remove leading slashes for object keys (#955)

Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
pull/1035/head
วคฯຟ 3 years ago committed by GitHub
parent
commit
474b702990
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/nocodb/src/plugins/backblaze/Backblaze.ts
  2. 2
      packages/nocodb/src/plugins/gcs/Gcs.ts
  3. 2
      packages/nocodb/src/plugins/linode/LinodeObjectStorage.ts
  4. 2
      packages/nocodb/src/plugins/mino/Minio.ts
  5. 2
      packages/nocodb/src/plugins/ovhCloud/OvhCloud.ts
  6. 2
      packages/nocodb/src/plugins/s3/S3.ts
  7. 2
      packages/nocodb/src/plugins/scaleway/ScalewayObjectStorage.ts
  8. 2
      packages/nocodb/src/plugins/spaces/Spaces.ts
  9. 2
      packages/nocodb/src/plugins/upcloud/UpoCloud.ts
  10. 2
      packages/nocodb/src/plugins/vultr/Vultr.ts

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

@ -79,7 +79,7 @@ export default class Backblaze implements IStorageAdapter {
const tempFile = path.join(process.cwd(), 'temp.txt');
const createStream = fs.createWriteStream(tempFile);
createStream.end();
await this.fileCreate('/nc-test-file.txt', {
await this.fileCreate('nc-test-file.txt', {
path: tempFile,
mimetype: '',
originalname: 'temp.txt',

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

@ -80,7 +80,7 @@ export default class Gcs implements IStorageAdapter {
const tempFile = path.join(process.cwd(), 'temp.txt');
const createStream = fs.createWriteStream(tempFile);
createStream.end();
await this.fileCreate('/nc-test-file.txt', {
await this.fileCreate('nc-test-file.txt', {
path: tempFile,
mimetype: '',
originalname: 'temp.txt',

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

@ -79,7 +79,7 @@ export default class LinodeObjectStorage implements IStorageAdapter {
const tempFile = path.join(process.cwd(), 'temp.txt');
const createStream = fs.createWriteStream(tempFile);
createStream.end();
await this.fileCreate('/nc-test-file.txt', {
await this.fileCreate('nc-test-file.txt', {
path: tempFile,
mimetype: '',
originalname: 'temp.txt',

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

@ -72,7 +72,7 @@ export default class Minio implements IStorageAdapter {
const tempFile = path.join(process.cwd(), 'temp.txt');
const createStream = fs.createWriteStream(tempFile);
createStream.end();
await this.fileCreate('/nc-test-file.txt', {
await this.fileCreate('nc-test-file.txt', {
path: tempFile,
mimetype: '',
originalname: 'temp.txt',

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

@ -79,7 +79,7 @@ export default class OvhCloud implements IStorageAdapter {
const tempFile = path.join(process.cwd(), 'temp.txt');
const createStream = fs.createWriteStream(tempFile);
createStream.end();
await this.fileCreate('/nc-test-file.txt', {
await this.fileCreate('nc-test-file.txt', {
path: tempFile,
mimetype: '',
originalname: 'temp.txt',

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

@ -83,7 +83,7 @@ export default class S3 implements IStorageAdapter {
const tempFile = path.join(process.cwd(), 'temp.txt');
const createStream = fs.createWriteStream(tempFile);
createStream.end();
await this.fileCreate('/nc-test-file.txt', {
await this.fileCreate('nc-test-file.txt', {
path: tempFile,
mimetype: '',
originalname: 'temp.txt',

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

@ -77,7 +77,7 @@ export default class ScalewayObjectStorage implements IStorageAdapter {
const tempFile = path.join(process.cwd(), 'temp.txt');
const createStream = fs.createWriteStream(tempFile);
createStream.end();
await this.fileCreate('/nc-test-file.txt', {
await this.fileCreate('nc-test-file.txt', {
path: tempFile,
mimetype: '',
originalname: 'temp.txt',

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

@ -87,7 +87,7 @@ export default class Spaces implements IStorageAdapter {
const tempFile = path.join(process.cwd(), 'temp.txt');
const createStream = fs.createWriteStream(tempFile);
createStream.end();
await this.fileCreate('/nc-test-file.txt', {
await this.fileCreate('nc-test-file.txt', {
path: tempFile,
mimetype: '',
originalname: 'temp.txt',

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

@ -77,7 +77,7 @@ export default class UpoCloud implements IStorageAdapter {
const tempFile = path.join(process.cwd(), 'temp.txt');
const createStream = fs.createWriteStream(tempFile);
createStream.end();
await this.fileCreate('/nc-test-file.txt', {
await this.fileCreate('nc-test-file.txt', {
path: tempFile,
mimetype: '',
originalname: 'temp.txt',

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

@ -79,7 +79,7 @@ export default class Vultr implements IStorageAdapter {
const tempFile = path.join(process.cwd(), 'temp.txt');
const createStream = fs.createWriteStream(tempFile);
createStream.end();
await this.fileCreate('/nc-test-file.txt', {
await this.fileCreate('nc-test-file.txt', {
path: tempFile,
mimetype: '',
originalname: 'temp.txt',

Loading…
Cancel
Save