steiza / docstore

For any civics-minded organization that needs a simple place to host documents publicly
http://a2docs.org/
7 stars 4 forks source link

Comma in filename #21

Closed vielmetti closed 8 years ago

vielmetti commented 8 years ago

If you upload a file that has a comma in the name, it goes boom. System is Chrome, running against localhost.

The localhost page isn’t working

localhost sent an invalid response. ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION

_AAATA Board Packet November 19, 2015_Revised.pdf is the filename.

[Include details here]

The Stack Overflow answer to this is here:

http://stackoverflow.com/questions/8588818/chrome-pdf-display-duplicate-headers-received-from-the-server

and that issue has something to do with the comma (",") character in the filename.

steiza commented 8 years ago

Shoudl be fixed by https://github.com/steiza/docstore/commit/ad941e364cf313c344f71e6d9c2c09644c1c5163