2.2.4 • Published 5 months ago

@masvio/uploader v2.2.4

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
-
Last release
5 months ago

MASV Web Uploader

Installation

yarn add @masvio/uploader

Usage

First Steps

Getting set up with MASV

Refer to the MASV API Developer Documentation. Below is an example using the Portals feature

  1. Login or Signup at MASV
  2. Follow the Documentation on Uploading to Masv
  3. Create a Package

OR

Uploading Files

Instantiate the Uploader

Get a Package ID - id - and an Access Token - access_token - from one of the above methods.

import { Uploader } from '@masvio/uploader';

const uploader = new Uploader(id, access_token);

Retrieve Files

An html input with the type attribute set to file will have a property titled files in the DOM

<input type="file" id="fileInput" />
const fileInput = document.getElementById('fileInput');
let files = [];

fileInput.addEventListener('input', (event) => {
    for (let file of fileInput.files) {
        files.push({
            id: 'test ID',
            file,
            path: ''
        });
    }
});

Upload files

uploader.addFiles(...files);

For more detailed information. Visit the MASV Web Uploader documentation page

2.2.3-beta

8 months ago

2.2.3

7 months ago

2.2.2

9 months ago

2.2.4

5 months ago

2.2.2-beta

12 months ago

2.2.3-beta.1

8 months ago

2.2.2-beta.2

10 months ago

2.2.3-beta.3

7 months ago

2.2.2-beta.1

11 months ago

2.2.4-beta

5 months ago

2.2.0-beta.3

1 year ago

2.2.1

1 year ago

2.2.0

1 year ago

2.1.1-beta.1

1 year ago

2.2.1-beta.3

1 year ago

2.2.1-beta.2

1 year ago

2.2.1-beta.1

1 year ago

2.2.0-beta.2

1 year ago

2.2.0-beta.1

1 year ago

2.1.3

1 year ago

2.1.4-beta.1

1 year ago

2.1.3-beta.2

1 year ago

2.1.3-beta.1

1 year ago

2.1.2

2 years ago

2.1.0

2 years ago

2.0.5-beta.2

2 years ago

2.0.5-beta.1

2 years ago

2.0.4

2 years ago

2.0.4-beta.3

2 years ago

2.0.4-beta.1

2 years ago

2.0.4-beta.2

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1-beta.1

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

2.0.0-beta.18

2 years ago

2.0.0-beta.17

2 years ago

2.0.0-beta.16

2 years ago

2.0.0-beta.15

2 years ago

2.0.0-beta.14

2 years ago

2.0.0-beta.13

2 years ago

2.0.0-beta.11

2 years ago

2.0.0-beta.12

2 years ago

2.0.0-beta.10

2 years ago

2.0.0-beta.9

2 years ago

2.0.0-beta.8

2 years ago

2.0.0-beta.7

2 years ago

2.0.0-beta.6

2 years ago

2.0.0-beta.5

2 years ago

2.0.0-beta.4

2 years ago

2.0.0-beta.3

2 years ago

2.0.0-beta.2

2 years ago

2.0.0-beta.1

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago