0.0.3 • Published 11 months ago

partial-uploader v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Installation

npm install partial-uploader

Usage

    import { uploadWithPartialFile } from 'partial-uploader';

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

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

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago