0.0.2 • Published 2 years ago
basic-web-tools v0.0.2
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);
});