Socket
Socket
Sign inDemoInstall

angular.core.upload

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    angular.core.upload

a upload plugin for upload


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Install size
48.8 kB
Created
Weekly downloads
 

Readme

Source

angular.core.upload 上传组件

A light weight(2.1KB)upload plugin for upload

DEMO

start


<script src="./build/angular.core.upload.min.js"></script>
// js
var app =angular.module('demo',['van.core.upload'])

    app.controller('test', function ($scope) {
        $scope.upload = function(data) {
            alert(data);
        }
    })

<div van-core-upload url="upload.php" input-of-file="image" on-success-upload="upload" />

options

url your server url @string rg:./src/upload.php;required;

on-success-upload: after finish your uploading your callback @function;required;

input-of-file: upload file form name @string;required

extensions: limit the file type @string eg:jpg,png;

MIT LICENSE

Keywords

FAQs

Last updated on 15 Jun 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc