Skip to content
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

fix(Android): Trimming file names for download to fix File Name too long error #3417

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

salla-andre
Copy link

@salla-andre salla-andre commented Apr 25, 2024

When the download file name size + the download directory path size exceeds the max file path size, the app will crash with a "File Name too long" exception.

To avoid that, I'm splitting the file name to get the extension, trimming the file name (w/o extension) and then putting the extension back to the file name, so it doesn't break while requesting the download.

IMG_0389

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant