ozone-api-upload
TypeScript icon, indicating that this package has built-in type declarations

6.2.6 • Public • Published

NPM version

ozone-api-upload

UploadFileRequest is a JavaScrip class that can be use as an XMLHttpRequest to upload media using ozone v2 upload chanel. It mask the complex series of AJAX call to one XMLHttpRequest like request. Note: that UploadFileRequest implement only a subset of XMLHttpRequest

install

$ npm install --save ozone-api-upload

usage

  import {UploadFileRequest} from 'ozone-api-upload'

  const uploader = new UploadFileRequest();
  uploader.open();
  const formData = new FormData();
  formData.append(file.formDataName, file, file.name);
  uploader.send(formData);

Readme

Keywords

none

Package Sidebar

Install

npm i ozone-api-upload

Weekly Downloads

82

Version

6.2.6

License

ISC

Unpacked Size

26.3 kB

Total Files

9

Last publish

Collaborators

  • simonhardy
  • aduchate
  • lomancel
  • dani_rocha
  • hubjac1