Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)