π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
R2 remove bucket from path
Fendy Heryanto4af8d3ae730e
diff --git a/packages/nocodb/src/plugins/r2/R2.ts b/packages/nocodb/src/plugins/r2/R2.tsindex d67a48a83f..80a5ec50cb 100644--- a/packages/nocodb/src/plugins/r2/R2.ts+++ b/packages/nocodb/src/plugins/r2/R2.ts@@ -49,7 +49,8 @@ export default class R2 extends GenericS3 implements IStorageAdapterV2 {override getUploadedPath(path: string): { path?: string; url?: string } {return {- url: `${this.input.hostname}/${this.input.bucket}/${path}`,+ // bucket in path should already be included in hostname+ url: `${this.input.hostname}/${path}`,};}}