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

Special characters when uploading files #1163

Open
mcurtaz opened this issue Feb 2, 2023 · 0 comments
Open

Special characters when uploading files #1163

mcurtaz opened this issue Feb 2, 2023 · 0 comments

Comments

@mcurtaz
Copy link

mcurtaz commented Feb 2, 2023

If a string contains special characters, it will not be sent when uploading files using the uploadFiles method. This is an error that only occurs on Android.

RNFS.uploadFiles({
   toUrl: url,
   files: files,
   method: 'POST',
   headers: {
      'Accept': 'application/json',
   },
   fields: {
      "foo": "éùà'ç"
   }
})

I found this solution and it worked: solution

Can the pull request be accepted?

It might help someone, so I'll leave it here anyway.

Maybe this other pull request will work as well, but I haven't tested it yet: pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant