Rn-fetch-blob: Error: RNFetchBlob.fetchBlobForm failed to create request body - Issue happens when I try to upload pdf file

Created on 2 Jun 2019  路  2Comments  路  Source: joltup/rn-fetch-blob

Hi,
Its working perfectly fine for image files but not working for pdf files

Code snippet
Screenshot 2019-06-02 at 11 37 44 AM

seems like its happening when there is a space between file name.

thanks in advance

Most helpful comment

one solution is to decodeURIComponent(uri) so RNFetchBlob can find the file

All 2 comments

Do you get the resolution for this issue? @hellokunji

It looks like would happen when uri be encoded and the string has %xx

one solution is to decodeURIComponent(uri) so RNFetchBlob can find the file

Was this page helpful?
0 / 5 - 0 ratings