There is a problem with files that are uploaded to paths with space in their name. The problem seems to be only with path name, as file names are correctly encoded to URL (space replaced with %20, etc)
Steps to reproduce:
- Go to channel file browser
- Create folder that contains space in the name
- Upload file to that folder and copy its URL
- Send the URL in the chat - the URL breaks when it reaches the
…&path=DIR WITH SPACE/&filename=…(after&path=DIRits no longer a URL)
I think the path name should also be encoded to URL friendly string.
Also, please consider adding support for displaying previews of images and audio files shared this way.