Comments (5)
You're welcome. I'll take a look at this and report back.
from react-native-uploader.
@demiurga can you give me an example of how you're looping over files and calling RNUploader.upload()? The module wasn't specifically designed to handle that use case, but I'll see what's possible.
from react-native-uploader.
For example:
opts.forEach((opt)=> {
RNUploader.upload(opt, (err, res)=> {
// ...something in callback
})
})
from react-native-uploader.
@demiurga I toyed with a few ideas, but calling RNUploader.upload(...)
in a loop is not supported at this time. Due to the way native modules are loaded (and certain implementation details of react-native-uploader itself), each upload(...)
call will overwrite instance variables including the stored callback.
If I am able to add this feature in the future I will let you know.
from react-native-uploader.
Got it, I resolved this issue with a promise waterfall. Thank you!
from react-native-uploader.
Related Issues (20)
- Upload directly from Camera instead of Camera Roll HOT 1
- Android: NativeModules.FileTransfer does not exist HOT 6
- Response
- How do you deal with multiple upload events HOT 1
- Chunked upload support HOT 3
- undefined is not an object (evaluating 'RNUploader.upload') HOT 2
- Will I be able to use FTP protocol? HOT 1
- Unsupported URL error
- no headers in response
- Video upload support HOT 5
- Illegal callback invocation on multiple call
- Might as well support for download?
- How does this plugin work?
- Does this lib help us upload image in background?
- Build fails after adding to project (iOS) HOT 5
- It doesn't add React to import part. HOT 1
- upload undefined HOT 1
- Proposal to merge with our uploader package HOT 1
- Clarification on what is required server-side
- audio file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-uploader.