@masvio/uploader v2.2.4
MASV Web Uploader
Installation
yarn add @masvio/uploaderUsage
First Steps
Getting set up with MASV
Refer to the MASV API Developer Documentation.
Below is an example using the Portals feature
- Login or Signup at MASV
- Follow the Documentation on Uploading to Masv
- 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
8 months ago
7 months ago
9 months ago
5 months ago
12 months ago
8 months ago
10 months ago
7 months ago
11 months ago
5 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago