Skip to content

Download filename does not correspond to the name uploaded #6449

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tusooa opened this issue Jul 3, 2022 · 1 comment
Open

Download filename does not correspond to the name uploaded #6449

tusooa opened this issue Jul 3, 2022 · 1 comment
Labels
A-File-Download O-Frequent Affects or can be seen by most users regularly or impacts most users' first experience S-Tolerable Low/no impact on users T-Defect Something isn't working: bugs, crashes, hangs and other reported problems

Comments

@tusooa
Copy link

tusooa commented Jul 3, 2022

Steps to reproduce

  1. Send an image named 菜.png to myself.
  2. On android, click on the image to enlarge it.
  3. Click the download button.

Outcome

What did you expect?

The downloaded filename should be called 菜_2022xxxxxxxxx.png.

What happened instead?

The downloaded filename is actually __2022xxxxxxxxx.png.

Note that the filename is normal if I long-press the message and Save.

Your phone model

pixel 4 xl

Operating system version

android 11

Application version and app store

1.4.14, f-droid

Homeserver

not relevant

Will you send logs?

No

Are you willing to provide a PR?

No

@tusooa tusooa added the T-Defect Something isn't working: bugs, crashes, hangs and other reported problems label Jul 3, 2022
@ouchadam ouchadam added A-File-Download S-Tolerable Low/no impact on users O-Frequent Affects or can be seen by most users regularly or impacts most users' first experience labels Aug 18, 2022
christianrowlands added a commit to christianrowlands/element-android that referenced this issue Oct 16, 2024
christianrowlands added a commit to christianrowlands/element-android that referenced this issue Oct 16, 2024
…d of including different character scripts for file names
@christianrowlands
Copy link
Contributor

I am seeing a similar issue where it replaces and characters that are non Latin (a-z, A-Z, and 0-9). I found the spot in the code that is causing the problem:

The regex is matching "[^a-z A-Z0-9\\\\.\\-]", which leaves out other scripts like Cyrillic and Han.

christianrowlands added a commit to christianrowlands/element-android that referenced this issue Oct 16, 2024
christianrowlands added a commit to christianrowlands/element-android that referenced this issue Nov 12, 2024
christianrowlands added a commit to christianrowlands/element-android that referenced this issue Nov 12, 2024
bmarty added a commit that referenced this issue Nov 12, 2024
…haracter-filename

#6449 Extended file name support to include characters from multiple languages, including Cyrillic and Han scripts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-File-Download O-Frequent Affects or can be seen by most users regularly or impacts most users' first experience S-Tolerable Low/no impact on users T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Projects
None yet
Development

No branches or pull requests

3 participants