0.2.2 • Published 4 years ago

big-little-file v0.2.2

Weekly downloads
19
License
Apache-2.0
Repository
-
Last release
4 years ago

big-little-file

A Javascript utility for uploading both small and huge files.

See the example-app README and the example code, or follow these directions:

Add to your package.json:

"big-little-file": "^0.2.0"

And then in your React component or action:

let bigLittle = await BigLittleFile.create(
    'https://cdsdeva.catalyticds.com/yacht/api/data/files',
    `Bearer ${this.state.jwt}`,
    file,
    {
        name: file.name,
        group: 'My Upload Test Files'
    }
);

bigLittle.upload(progressData => {
    console.log(progressData.uploadedBytes + " completed of " + progressData.totalBytes);
}).then(fileInfo => {
    console.log("File fully uploaded to: " + fileInfo.path);
}).catch(err => {
    console.log(err);
});
0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.8

4 years ago

0.1.9

4 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago