rn-fetch-blob icon indicating copy to clipboard operation
rn-fetch-blob copied to clipboard

can not read file path if path contain space, or utf8 character

Open fukemy opened this issue 3 years ago • 2 comments

Hi, i just found if my path contain space or some unicode character, then RnFetchBlob return this error message: Files does not exist at path....

Some example: file:///private/var/mobile/Containers/Data/Application/5552FB3D-A349-47DF-9770-68C405AAA474/tmp/com.vedax.vedaxlinkv2-Inbox/Ta%CC%80ilie%CC%A3%CC%82uPDF.pdf => Not work

I changed file name to file:///private/var/mobile/Containers/Data/Application/5552FB3D-A349-47DF-9770-68C405AAA474/tmp/com.vedax.vedaxlinkv2-Inbox/TailieuPDF.pdf => Worked

fukemy avatar Sep 13 '22 17:09 fukemy

@fukemy @eneilsen @ihavenoface5 Facing the same issue. Can anyone suggest me a solution?

codal-mpawar avatar Jul 13 '23 05:07 codal-mpawar

use this : decodeUriComponent

fukemy avatar Jul 13 '23 06:07 fukemy