@connect-soft/upload-file-lib
v0.5.2
Published
Split File and upload
Downloads
99
Readme
Upload File Lib
Installation
yarn add @connect-soft/file-upload-lib
Quickstart
fileUpload(apiPath, fileUid, file, maxUploadedSize, (percentage) => {
setUploadingProgress(percentage);
})
.then(() => {
setUploadingProgress(1);
setUploadingStatus('success');
})
.catch(() => {
setUploadingStatus('error');
});