datasette icon indicating copy to clipboard operation
datasette copied to clipboard

fix: support static files with spaces in their names

Open andrew-grechkin opened this issue 1 year ago • 1 comments

Browser encodes all non-ASCII characters in URL into percent encoding format.

Static files are served from the filesystem, and can have unsafe characters in their names.

To support such files the request path should be decoded.


📚 Documentation preview 📚: https://datasette--2450.org.readthedocs.build/en/2450/

andrew-grechkin avatar Dec 06 '24 16:12 andrew-grechkin

It would be really nice to get this merged. This is an incredibly annoying bug. Every time I have to do a fork and patch the static handler, or rename every single file and deal with the duplication problems it causes.

brandonrobertz avatar Sep 17 '25 20:09 brandonrobertz