Skip to content

Vanthink-UED/angular.core.upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular.core.upload 上传组件

A light weight(2.1KB)upload plugin for uploading

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