Browse Source

fix: decode field name as utf-8 (#8609)

pull/8618/head
Rohit 1 month ago committed by GitHub
parent
commit
6948eee372
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      packages/nocodb/src/services/public-datas.service.ts

4
packages/nocodb/src/services/public-datas.service.ts

@ -307,7 +307,9 @@ export class PublicDatasService {
for (const file of param.files || []) {
// remove `_` prefix and `[]` suffix
const fieldName = file?.fieldname?.replace(/^_|\[\d*]$/g, '');
const fieldName = Buffer.from(file?.fieldname || '', 'binary')
.toString('utf-8')
.replace(/^_|\[\d*]$/g, '');
const filePath = sanitizeUrlPath([
'noco',

Loading…
Cancel
Save