ozone-api-upload
v6.3.6
Published
UploadFileRequest is a JavaScrip class that can be use as an XMLHttpRequest to upload media using ozone v2 upload chanel.
Downloads
611
Keywords
Readme
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);