Closed Bug 296316 Opened 19 years ago Closed 19 years ago

Cannot upload files with unicode chars in filename through HTML form

Categories

(Firefox :: File Handling, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 162361

People

(Reporter: joseph.sui, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

On Windows XP Professional with NTFS.
After picking the file with unicode name through the "browse" button in HTML
form <input type=file>, the text box for file name will change the double-byte
character to _ (underscore).

Manually correcting it will only correct the text in the box.  Uploading the
file will result an empty file being uploaded, regardless of whether the name
has been manually corrected or not.

Reproducible: Always

Steps to Reproduce:
On Windows XP Pro, surf the net and find some string with asian characters. copy it.
1. create a simple text file with some content.
2. rename the text file with the string you have just copied.
3. try uploading it to, say, gmail and send it to yourself.

Actual Results:  
The file name still result in _ replacing the asian character regardless whether
you have manually corrected it.

If you have network sniffer, you will see that the file content uploaded is
actually empty.  It seems as if the browser is unable to file the file, thus
uploading a empty stub.

Expected Results:  
1. file name correctly set in the text box for file path.
2. file correctly uploaded.

*** This bug has been marked as a duplicate of 162361 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.