π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: decode key in r2
DarkPhoenix270488e897aec78f
diff --git a/packages/nocodb/src/plugins/r2/R2.ts b/packages/nocodb/src/plugins/r2/R2.tsindex fb9e46ae4c..244c4a71ba 100644--- a/packages/nocodb/src/plugins/r2/R2.ts+++ b/packages/nocodb/src/plugins/r2/R2.ts@@ -29,6 +29,10 @@ export default class R2 extends GenericS3 implements IStorageAdapterV2 {};}+ protected patchKey(key: string): string {+ return decodeURI(key);+ }+protected patchUploadReturnKey(key: string): string {// R2 by default encodes the key. But we expect the key to be decoded.return decodeURI(key);