jQuery-File-Upload icon indicating copy to clipboard operation
jQuery-File-Upload copied to clipboard

Filenames starting with # cannot be uploaded on Chrome 31 on Linux

Open robvdl opened this issue 11 years ago • 4 comments
trafficstars

When I add files starting with a # as the first character of the file name, it comes up with %23 instead of the # in the file queue.

It then shows the file is 0 bytes as well.

robvdl avatar Jan 16 '14 00:01 robvdl

%23 is the urlencoding of the # character. However it's not necessary to encode this character when displaying the name in the upload or download template and it shouldn't have any effect on the file size calculation or display.

In my local tests as well as on the demo I could not reproduce this issue, files named like this can be uploaded and display properly. However I've only tested this with Chrome on OSX, so there might be browser/OS specific issues with other combinations.

blueimp avatar Jan 16 '14 00:01 blueimp

You are right, it seems to be a browser issue.

Using Chrome 31 on Linux produces the bug, but Firefox 26 on Linux does not have the problem.

robvdl avatar Jan 16 '14 01:01 robvdl

Also I noticed it ONLY does it in Chrome if you add multiple files at once, and some of these files start with a #

If you add just one file that starts with a # in chrome, it works fine and doesn't produce the bug.

Firefox on the other hand has no problems adding multiple files, if some start with a #

robvdl avatar Jan 16 '14 01:01 robvdl

Thanks for providing further information. I'll reopen this and mark it as a browser bug.

You might want to create a reduced test case and report it to the Chromium developers.

blueimp avatar Jan 16 '14 02:01 blueimp