# batch-file-upload

> vue upload img

Latest version **1.0.2** (published 2021-01-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install batch-file-upload
pnpm add batch-file-upload
yarn add batch-file-upload
bun add batch-file-upload
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-01-22 |
| First published | 2021-01-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 489.3 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | dolphinccccc |

## Links

- npm: https://www.npmjs.com/package/batch-file-upload
- npm.io page: https://npm.io/package/batch-file-upload

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^0.19.2
- [plupload](https://npm.io/package/plupload.md) ^2.3.6

## Recent versions

- 1.0.2 (latest) — 2021-01-22
- 1.0.1 — 2021-01-22
- 1.0.0 — 2021-01-22

## README

####  ali-oss-file-upload
###对plupload再封装 进行图片上传



### 举例
#### JS代码
```javascript
let upload = new imgUpload({
  id:'upload',//点击这个dom元素 进行上传图片操作
  url:url,//服务器地址
  imgLoadResult: function callBack(res) {
    console.log('callback+++',res)
  }//上传成功后 返回的图片地址 
})
upload.init()//进行初始化
```

#### HTML 
```html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="upload" >上传图片</div>
</body>

<script src='/dist/main.bundle.js' type="text/javascript"></script>
<script src='main.js'>
</script>

</html>
```

##vue

```javascript
import { imgUpload} from 'ali-oss-file-upload/dist/main.bundle.js'
```

---
_Source: https://npm.io/package/batch-file-upload · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
