View / Download files in GridFS collection, fails on Windows when file name contains braces / colon

E.J. Daly shared this problem 14 months ago
Solved

Comments (4)

photo
1

For example, a file with name "Upload (2018-09-18T13:05:15.112Z).jpg" will fail to open on Windows.

If the file is renamed (directly in mongo), to "Upload 2018-09-18T130515.112Z.jpg" it will open fine.

Likely due to the unescaped characters, which Windows will have trouble with.

I think a reasonable solution would be to either escape these characters, or else simply strip them from the downloaded file name.

photo
1

a5cd3ccd7b004703b5f0ab45e1bbb908

photo
2

Thank for your bug report. We will fix it in the next release by sanitizing the filename.

photo
1

Fixed in 4.7.5 and 5.0.x