-
Notifications
You must be signed in to change notification settings - Fork 132
File uploads with file name containing a path #228
Comments
@christarazi It would be weird to have "C:\users..." on an android device. Moreover, the windows pathes won't be detected as valid ones on other platforms. Even on android platforms, the path might be different. |
I think we might have a misunderstanding. I am suggesting to have Riot look at For example:
The reason is because some clients choose to put the entire file path in |
Riot should at the very least sanitize the filename it is trying to save to. |
This fixes matrix-org/matrix-android-sdk#228. Signed-off-by: Chris Tarazi <tarazichris@gmail.com>
Closing as element-hq/riot-android#2019 has been merged. |
Different clients may choose to put the entire file path in
m.body
when uploading files, which is used as the default file name insaveMedia
. A toast appears with an error:No such file or directory
when trying to save the file.Perhaps detecting if a file name contains a path, and just trimming it to contain only the name would fix the issue. I thought I'd inform you guys here to get your opinion instead of creating a PR immediately.
The text was updated successfully, but these errors were encountered: