fs-upload

0.1.4 • Public • Published

fs-upload

截图后粘贴、拖拽和点击上传预览,图片压缩。

install

npm install fs-upload --save

Development

npm install
npm start

Example

http://github.dxcweb.com/fs-upload/

API

Name Type Default Description
paste Bool true 是否支持粘贴
drop Bool true 是否支持拖拽
domain String document 域 document或者self 指drop或paste在什么域上
allow String image 允许上传文件格式 比如:image或者image|zip
onError Function null 类型错误时调用参数(msg, type)
onChange Function null 输入参数files

Package Sidebar

Install

npm i fs-upload

Weekly Downloads

1

Version

0.1.4

License

none

Last publish

Collaborators

  • dxcweb