axios-fileupload
v0.0.1
Published
File upload using axios
Downloads
1,523
Readme
Axios file upload
File upload using axios (multipart/form-data)
Install
$ npm install --save axios-fileupload
Usage
const axiosFileupload = require('axios-fileupload');
axiosFileupload(url,file);
//=> 'Uploads a file and returns a promise'
API
axiosFileupload(url,file)
url
Type: string
File upload API endpoint url
file
Type: file object
File that you want to upload
License
MIT © Ashik Nesin