New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 750302 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 627739
Owner:
Closed: Aug 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Multiple file selection using dialog causes spaces in files to be converted to %20

Reported by cserveny...@gmail.com, Jul 28 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/59.0.3071.109 Chrome/59.0.3071.109 Safari/537.36

Steps to reproduce the problem:
1. go to  
https://davidwalsh.name/demo/multiple-file-upload.php
2. create following files:

touch "strange file.pdf"
touch "strange file  with   more    spaces.pdf"

3. Select BOTH files and you will see the following:

Files You Selected:
strange file%20 with%20%20 more%20%20%20 spaces.pdf
strange file.pdf

4. Selecting only the PDF with more spaces will select it correctly.

5. trying to upload the file will fail with file not found.

What is the expected behavior?

What went wrong?
Cannot upload multiple files with spaces in the name.

Did this work before? No 

Does this work in other browsers? Yes

Chrome version: 59.0.3071.109  Channel: stable
OS Version: 
Flash Version: Shockwave Flash 14.0 r0

I've tried also with 53, 59 and 60 (chrome).
 
Tested on Windows, problem does not appear.
Kubuntu 14.04

Comment 3 by jsb...@chromium.org, Jul 28 2017

Interesting - no repro for me in Chrome stable 60. On Ubuntu 14.04 I don't see the %20's appearing in the filenames, and inspecting the HTML the multiple spaces are preserved (i.e. the `li.innerHTML = input.files[i].name` line is preserving the spaces). 

Did you selected both files together?

One by one works fine.

Comment 5 by jsb...@chromium.org, Jul 28 2017

Yes, both files. (Also tried drag/drop - same result.) Hrm, I wonder what's different. 
I tried drag and drop, it works perfectly. I'll try on my other kubuntu 14.04.
My work computer also does it. (same 14.04 KDE)

Is the file dialog from the OS, or chrome provides it?

Did you put more spaces into the file? It is only working if you use more than one space more than once. (don't ask how I found this ;-)

Comment 8 by jsb...@chromium.org, Jul 28 2017

Yes, multiple spaces. (Your repro steps were very clear, but thanks for checking!)

I was wondering about the file dialog; I'm using the cinnamon window manager (as are most Googlers on linux, I think). 

I tried to look for libraries, but chrome is statically linked. Still it opens the KDE File select dialog. 

Is chrome using dbus or similar to open it? Then I can imagine some encoding fun.

Additionally I updated everything related to kde and dbus, nothing changed. Tomorrow I'll boot into a clean kubuntu iso. Let's see what happens.
Additional steps to reproduce:

1) download kubuntu 16.04.2.iso and boot it with virtualbox
2) apt-get update
3) apt-get install chromium-browser

and repeat the original steps.

Comment 11 by phistuck@gmail.com, Jul 29 2017

Since the user agent mentions "Ubuntu Chromium" (and you also mention "(chrome)"), I just want to verify - does it reproduce with Google Chrome?
I reproduced it with Google Chrome 
"Version 60.0.3112.78 (Official Build) (64-bit)"
Labels: Needs-Milestone
Labels: Needs-Feedback
cserveny.tamas@ Thank you for the issue.

Unable to reproduce the issue on Ubuntu 14.04 and Mac OS on latest stable 60.0.3112.90, reported version 60.0.3112.78 with the below steps.

1. Downloaded sample pdf files and given filenames with spaces.
2. Opened the above given url and tried to upload multiple pdf's.
3. Able to upload multiple files with spaces and cannot see no extra characters in the file name.

Please find the attached screen cast and confirm if anything is missed here.Request you once try the issue on clean profile and update the thread.
filename_pdf.webm
3.9 MB View Download
Hi,

I'll create a video. Please note, that this seems to be a KDE related issue. You are using Ubuntu. My repo is on KUbuntu!

Cheers,

Tamas
Project Member

Comment 16 by sheriffbot@chromium.org, Aug 7 2017

Cc: susanjuniab@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "susanjuniab@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
kubuntu16041.webm
613 KB View Download
Labels: TE-NeedsTriageFromMTV
The issue seems to be reproducible on OS-Kubuntu and that particular OS doesn't seem to be available with TE-India Team. Hence, adding label TE-NeedsTriageFromMTV for further investigation.

Thanks...!!
Status: Untriaged (was: Unconfirmed)
Confirming. Seems like an issue with the filesystem chooser and not chrome.
Cc: dmu...@chromium.org
Owner: pwnall@chromium.org
Components: Blink>Forms>File

Comment 22 by tkent@chromium.org, Aug 17 2017

Mergedinto: 627739
Status: Duplicate (was: Untriaged)
Components: Blink>Storage>FileAPI
Components: -Blink>FileAPI

Sign in to add a comment