Multiple images uploader
Simple uploader for tons of images
Features
- Multistream upload
- Stop/pause, resuming previous upload
- Promise & events support
- Configurable chunk size
Installing
npm install multiple-images-uploader
Examples
const filesToUpload = formelementsfiles; const uploader = target: 'http://example.com/upload' files: filesToUpload; // Subscribe for progressuploader;// will print {total: 51255, loaded: 12234, percent: '23%'} uploaderstart ; ; // Also you can subsribe uploader;uploader ...);
Constructor options argument
target: 'localhost' // request target, files: files // accept <FileList> type additData: // data to be sent with each part key: 'login' value: 'boroda' partSize: 5 // each part will contain n files. Default: 5 streams: 2 // number of concurrent requests. Default: 1.