myDrive icon indicating copy to clipboard operation
myDrive copied to clipboard

fix ERR_INVALID_CHAR when filename contains non-ASCII characters

Open catzy007 opened this issue 7 months ago • 0 comments

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'
}

catzy007 avatar Jul 11 '25 10:07 catzy007