@connect-soft/upload-file-lib
TypeScript icon, indicating that this package has built-in type declarations

0.4.1 • Public • Published

Upload File Lib

npm downloads npm npm

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');
  });

Readme

Keywords

Package Sidebar

Install

npm i @connect-soft/upload-file-lib

Weekly Downloads

62

Version

0.4.1

License

ISC

Unpacked Size

31.6 kB

Total Files

8

Last publish

Collaborators

  • ct-st