Docs


Installation

Via Yarn

yarn add @wavevision/uploader

or npm

npm install --save @wavevision/uploader

Usage

There are a few ways you can integrate the uploader into your project.

Standard

The most common way is to import the uploader initializer into your project’s assets and use it as follows:

import WavevisionUploader from '@wavevision/uploader';

document.addEventListener('DOMContentLoaded', () =>
  WavevisionUploader.init(options),
);

The init function options argument is an object with these properties:

Name Type Description
link object Properties:
  • url: string – your application upload endpoint
  • parameter?: string – optional name of a POST request parameter which holds an uploaded file (default file)
messages Messages | undefined See Custom messages for more info

React

Customization

Custom messages