0.0.2 • Published 2 years ago

basic-web-tools v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Installation

npm install basic-web-tools

Usage

import { uploadWithPartialFile } from 'basic-web-tools';

let file = event.target.files[0];

uploadWithPartialFile('/url', file).then(x => {
  if (x.isSuccess)
      return x.id; // folder name
  else console.log(x.message);
}).catch(err => {
  if (x.isSuccess)
      return x.id; // folder name
  else console.log(x.message);
});
0.0.2

2 years ago

0.0.1

2 years ago