joltup / rn-fetch-blob

A project committed to making file access and data transfer easier, efficient for React Native developers.
MIT License
2.84k stars 784 forks source link

fix normalizing file:// paths with special characters #736

Open halaei opened 3 years ago

halaei commented 3 years ago

File uris with space and other special characters are not correctly normalized. The fix is to removing 3 lines of code on normalizePath() because the correct normalization code already exists in PathResolver.getRealPathFromURI().

Example input: file:///storage/emulated/0/Foo%20Bar Correct output: /storage/emulated/0/Foo Bar. Current (wrong) output: /storage/emulated/0/Foo%20Bar.

retyui commented 2 years ago

Hi This module is unmentionable ⚠️! please use fork: https://github.com/RonRadtke/react-native-blob-util