Vydia / react-native-background-upload

Upload files in your React Native app even while it's backgrounded. Supports Android and iOS, including camera roll assets.
MIT License
723 stars 330 forks source link

There is no 'body' option #204

Open ChrisAudvice opened 4 years ago

ChrisAudvice commented 4 years ago

Is there any way to add a 'body' to the upload? At the moment, the only thing that's close to body I see is an argument called 'parameters' but it only works if the type is 'multipart' so no help at all.

Anyone has any ideea if it's possible or if a 'body' option is planned, there's headers so there should be a way to add a body as well.

Ovrful commented 3 years ago

Is it possible to upload anything without providing parameter "path". Lets say i just want to upload something that is more than just a single file, for example FormData parameters ?

Thanks.

haibert commented 2 years ago

I really wish the documentation was a bit more thorough. Im not sure what we can use the "parameters" option for but I want to attach a body json. Is it possible to do something like that ?