Upload fails on browser if filename contains Unicode character #275

Closed
opened 2026-01-19 18:29:42 +00:00 by michael · 1 comment
Owner

Originally created by @YJSoft on GitHub.

Below is browser console error log. I checked CJK charactor only.

Uncaught TypeError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': Value is not a valid ByteString.
    at a (main.js:5)
    at File.<anonymous> (main.js:5)
    at Function.each (main.js:1)
    at HTMLInputElement.<anonymous> (main.js:5)
    at HTMLInputElement.dispatch (main.js:2)
    at HTMLInputElement.q.handle (main.js:2)

Sample filename for testing 가나다라마바사.txt

Originally created by @YJSoft on GitHub. Below is browser console error log. I checked CJK charactor only. ``` Uncaught TypeError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': Value is not a valid ByteString. at a (main.js:5) at File.<anonymous> (main.js:5) at Function.each (main.js:1) at HTMLInputElement.<anonymous> (main.js:5) at HTMLInputElement.dispatch (main.js:2) at HTMLInputElement.q.handle (main.js:2) ``` Sample filename for testing `가나다라마바사.txt`
Author
Owner

@paolafrancesca commented on GitHub:

@YJSoft this is solved in codebase since almost an year. I cannot do anything about the version on https://transfer.sh

@paolafrancesca commented on GitHub: @YJSoft this is solved in codebase since almost an year. I cannot do anything about the version on https://transfer.sh
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dutchcoders/transfer.sh#275