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

Support of special characters in files names by uploadFiles() #84

Open
birdofpreyru opened this issue Nov 12, 2024 · 2 comments
Open

Support of special characters in files names by uploadFiles() #84

birdofpreyru opened this issue Nov 12, 2024 · 2 comments
Labels
In Progress Work in progress. P2 Important issue.

Comments

@birdofpreyru
Copy link
Owner

Similar to #82, it looks like uploadFiles() does not support special characters (e.g. ö, ä, ü) in paths / file names; or at least on Android including special characters alters the upload results in an unexpected way.

@birdofpreyru birdofpreyru added P2 Important issue. On Hold Blocked for some reason. labels Nov 12, 2024
@birdofpreyru birdofpreyru added In Progress Work in progress. and removed On Hold Blocked for some reason. labels Nov 24, 2024
@birdofpreyru
Copy link
Owner Author

Perhaps, can be closed, but lets wait for #91, to verify there is no apparent issues with this.

@birdofpreyru
Copy link
Owner Author

birdofpreyru commented Jan 23, 2025

There is an issue with auto-detection of MIME-types for filenames with special characters (it is used to auto-set Content-Type for the uploaded file when no filetype option is provided explicitly for that file). The problem happens here:

val extension = MimeTypeMap.getFileExtensionFromUrl(path)

that MimeTypeMap.getFileExtensionFromUrl(path) (coming from Android library) returns empty string for filenames with special characters, e.g. /data/user/0/drpogodin.reactnativefs.example/cache/öäü-upload-file-2.txt, while it correctly returns txt for /data/user/0/drpogodin.reactnativefs.example/cache/upload-file-2.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In Progress Work in progress. P2 Important issue.
Projects
None yet
Development

No branches or pull requests

1 participant