Skip to content

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

Notifications You must be signed in to change notification settings

dxcweb/fs-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published