myDrive
myDrive copied to clipboard
fix ERR_INVALID_CHAR when filename contains non-ASCII characters
Fixes
Express route error: TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["Content-Disposition"]
at ServerResponse.setHeader (node:_http_outgoing:658:3)
at ServerResponse.header (/usr/app-production/node_modules/express/lib/response.js:794:10)
at /usr/app-production/dist-backend/services/chunk-service/utils/getFileData.js:101:21
at Generator.next (<anonymous>)
at fulfilled (/usr/app-production/dist-backend/services/chunk-service/utils/getFileData.js:5:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
code: 'ERR_INVALID_CHAR'
}