Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashiknesin/axios-fileupload
File upload using axios
https://github.com/ashiknesin/axios-fileupload
Last synced: 5 days ago
JSON representation
File upload using axios
- Host: GitHub
- URL: https://github.com/ashiknesin/axios-fileupload
- Owner: AshikNesin
- License: mit
- Created: 2017-02-12T17:46:40.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-05T05:15:47.000Z (almost 7 years ago)
- Last Synced: 2024-10-31T19:45:46.338Z (16 days ago)
- Language: JavaScript
- Size: 35.2 KB
- Stars: 10
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# Axios file upload
> File upload using axios (multipart/form-data)
## Install
```
$ npm install --save axios-fileupload
```## Usage
```js
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](https://github.com/AshikNesin/axios-fileupload)