Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yu-img-upload

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yu-img-upload

a simple images upload plugin with preview

  • 1.0.4
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

npm install --save yu-img-upload

import imgUpload from 'yu-img-upload'

@param {object} option - one entry param to function yu-img-upload
@param {boolean} [option.popup] - accept true || false 是否用插件带的弹出框 默认用
@param {boolean} [option.multiple] - accept true || false 是否支持多选 默认支持
@param {string} [option.name] - name input的name属性 默认名为file
@param {obejct} [option.target] target render DOM 需要渲染的dom
@param {number} [option.maxnum = 5] - max upload number 最大选择图片数量 (multiple为false的时候插件会强制maxnum为1) 默认为5
@param {number} [option.maxsize = 1] - max upload image size 选择图片最大的尺寸 单位M 默认1M
  • this package is depend on jquery & it's already mixin it
  • this package is mixin yu-popup(https://www.npmjs.com/package/yu-popup)

Keywords

FAQs

Package last updated on 24 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc