Skip to content

[FIX] Allow send files with '#' - #2339

Closed
EzequielDeOliveira wants to merge 5 commits into
RocketChat:developfrom
EzequielDeOliveira:fix-send-files-from-library-with-#
Closed

EzequielDeOliveira wants to merge 5 commits into
RocketChat:developfrom
EzequielDeOliveira:fix-send-files-from-library-with-#

Conversation

@EzequielDeOliveira

Copy link
Copy Markdown
Contributor

This PR make allow to send files with '#' in the name. this problem is because '#' is a especial character to pass fragments. to encode this, is necessary to use encodeURIComponent. With this in mind I make allowable in the preview and share of files from gallery.

ezgif com-video-to-gif(25)

I found this pr #2020 with a similar proposal but without the encodeURIComponent this is the result when the name contains '#'

ezgif com-video-to-gif(26)

This problem was fixed too.

ezgif com-video-to-gif(27)

This PR closes #2182

Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com>
Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com>
@EzequielDeOliveira EzequielDeOliveira changed the title Allow send files with '#' [FIX] Allow send files with '#' Jul 25, 2020
@diegolmello

Copy link
Copy Markdown
Member

It looks like this PR causes an error on iOS, but I know you don't have a Mac to test.
I'll finish the iOS part later.
Thanks for your contribution :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upload or share file with # in name fails

2 participants