Rn-fetch-blob: Unicode filename support for iOS

Created on 6 Dec 2018  路  4Comments  路  Source: joltup/rn-fetch-blob

RNFB: 0.10.13
RN: 0.57.0

I was trying to download a file from the server with korean/chinese characters in its filename using RNFetchBlob.fetch(), but got Error: unsupported URL error in iOS.

Fetching the same file works fine in Android.

Most helpful comment

@idanlevi1 you can use encodeURI() on the filename before uploading then downloading the file should be fine

All 4 comments

+1

RNFB: 0.10.13
RN: 0.57.0

I was trying to download a file from the server with korean/chinese characters in its filename using RNFetchBlob.fetch(), but got Error: unsupported URL error in iOS.

Fetching the same file works fine in Android.

Do you solve that?

@idanlevi1 you can use encodeURI() on the filename before uploading then downloading the file should be fine

@idanlevi1 you can use encodeURI() on the filename before uploading then downloading the file should be fine

Thanks! it work 馃憤 馃憤 馃憤

Was this page helpful?
0 / 5 - 0 ratings