You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Would be very nice to be able to upload ph:// files without extra steps.
Describe the solution you'd like
I can't really describe the solution. Someone opened a PR in another library a while ago related to ph:// uploads
Describe alternatives you've considered
Copy a temporary file with react-native-fs then upload the temporary file then delete temporary file after upload is finished
Have a nice day!
The text was updated successfully, but these errors were encountered:
Hey, thank you for your request! While I do understand your motivation for wanting this feature, I avoid adding any file system related feature by design: it seems to me that predecessors of react-native-blob-courier (e.g. rn-fetch-blob) tried to include both file system access and HTTP transfer functionality, which is what bit them eventually. Either because the library became too big to maintain, because Android moved to Scoped Storage, etc.
Therefore the alternative approach you described is exactly the way react-native-blob-courier is intended to be used. Which might be cumbersome and even suboptimal from a resource usage perspective, but it keeps react-native-blob-courier simple, focused and maintainable.
If you're looking for a combination of both file system access and HTTP transfers you should check out react-native-file-access, which is an initiative that just like react-native-blob-courier started in the wake of the rn-fetch-blobdiscontinuation.
Hello @edeckers!
Is your feature request related to a problem? Please describe.
Would be very nice to be able to upload ph:// files without extra steps.
Describe the solution you'd like
I can't really describe the solution. Someone opened a PR in another library a while ago related to ph:// uploads
Describe alternatives you've considered
Copy a temporary file with react-native-fs then upload the temporary file then delete temporary file after upload is finished
Have a nice day!
The text was updated successfully, but these errors were encountered: