0.0.8 • Published 4 years ago

oriio-js v0.0.8

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

oriio-js

Oriio JS SDK is a simple client-side file upload service that allows you to upload files directly from your web project to your storage or application setup with Oriio. Oriio's uploader is smart in that in takes into consideration file size to either upload your file the normal way or in chunks.

Features

  • Upload files easily and efficiently.
  • Add an onProgress handler to receive feedback on file progress.
  • Upload files to your own server.

Install

npm i oriio-js

Usage

import oriio from 'oriio-js';

const options = {
   claimFile: {
      url: 'url-of-your.server',
      headers: {  }, // headers for your server
   }, // if claimFile object is passed the `openFileId` is automatically sent to your server.
   concurrency: 3, // number of concurrent requests when chunk uploading
   onProgress: handleUploadProgress,
}

oriio.upload(applicationId, options, file)
   .then(onSuccess)
   .catch(onError);
0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.1

4 years ago

0.0.2

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago