-
Notifications
You must be signed in to change notification settings - Fork 10
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
Option to pass body to fetchBlob #170
Comments
Hi @ezze , thank you for your suggestion! It seems like a fair request: I'll put it on the backlog and link this issue to the PR as soon as I find the time to work on it. |
@edeckers Great! Thank you for a quick reply! I really appreciate your efforts on supporting this feature! It would be awesome to have this one. |
@edeckers Just wanted to ask you whether it's difficult to implement this feature in the lib. I know, you support it in your free time so it's not a request from me. I am considering options to interrupt uploads/downloads. While option to interrupt uploads only is available in |
It's not too complicated in terms of code complexity, but I think it will amount to quite some lines and changes; more than you'd expect anyway. Something along the lines of https://github.com/edeckers/react-native-blob-courier/pull/141/files, and that PR doesn't even include tests yet; typically each PR adds multiple tests for TypeScript, Android and iOS. So I'd like to add the feature and help you out, but as you can imagine December isn't the best month to find time for that, what with the Holidays and all that stuff going on. January seems feasible for me. In addition I'd like to mention that I welcome PR's, if you feel like making a start yourself! Should you consider doing so, let's figure out a contract for the interface together before you start working on it, so your hard work won't be for naught. |
@edeckers Thanks for your reply, mate. The project I am working on at the moment is my first React Native application so I'm not sure that it will be easy for me to dig into the issue and implement the feature I need in a short time range. Although, it's interesting for me. I have to spend some time to understand how all these native things are built and work first. So I'll look for a cheaper way to implement the required feature by trying another libs. But if I have no luck and our business partners are ready to pay for this then I'll back to you and dig into implementing this feature. Thanks for your responsiveness and helpfulness. Really appreciate it!!! |
I totally get where you're coming from, hopefully react-native-file-access solves the issue for you. Either way I'm still considering adding this feature in January / early 2022, so make sure to check back every now and then! |
@edeckers I like your library too much so decided to migrate to GET request with query parameters instead of POST with body as a temporary workaround. It was before author of |
Haha, thanks for the compliment and nice workaround! |
It is a very nice feature. |
Hi @EduFrazao , thank you for reaching out! I agree that this is a nice and even missing feature that I'd love to add. There have been some unforseen life events (nothing too serious) for me though, which resulted in me not being able to find the right time and mindset to pick this up. Still planning on adding it, but right now I can't make any actual promises about when I'll get to it. |
Is your feature request related to a problem? Please describe.
I am trying to download a big file using our API
JSON body with request parameters must be part of the request but unfortunatelly I didn't find such option for
fetchBlob
.Describe the solution you'd like
I want my request to look like this:
Describe alternatives you've considered
At the moment I use
FileSystem.fetch
from react-native-file-access but unfortunately it doesn't provide a way to cancel a long request:The text was updated successfully, but these errors were encountered: