Giter Site home page Giter Site logo

duanjiex / nice-uploader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from niceue/nice-uploader

0.0 2.0 0.0 808 KB

Multiple file upload jQuery plugin with progress-bar, using html5 and flash technology.

Home Page: http://niceue.com/uploader/

License: MIT License

HTML 7.09% CSS 1.97% Batchfile 0.14% ActionScript 43.47% JavaScript 46.83% PHP 0.49%

nice-uploader's Introduction

Uploader

Multiple file upload jQuery plugin with progress-bar, using html5 and flash technology.

Usage

Include resources:

<link rel="stylesheet" href="path/to/jquery.uploader.css">
<script type="text/javascript" src="path/to/jquery.uploader.js"></script>

Initialization:

$("#upload_btn").uploader({
    action: 'upload.php',
    onSuccess: function(){
        //do something..
    }
});

Documention

简体中文

API

  • mode: "html5"
  • action: ""
  • name: "file"
  • formData: null {object|function}
  • multiple: false
  • auto: true
  • showQueue: false
  • fileSizeLimit: 0
  • fileTypeDesc: ""
  • fileTypeExts: ""
  • onInit: noop
  • onClearQueue: noop
  • onSelected: noop
  • onCancel: noop
  • onError: noop
  • onStart: noop
  • onProgress: noop
  • onSuccess: noop
  • onComplete: noop
  • onAllComplete: noop
  • onMouseOver: noop
  • onMouseOut: noop
  • onMouseClick: noop
  • onAddQueue: default function
Begin upload

$("#upload_btn").uploader("start");

Cancel upload first file

$("#upload_btn").uploader("cancel", 0);

Cancel upload all files

$("#upload_btn").uploader("cancel", "*");

Dependencies

jQuery 1.7+

Browser Support

  • IE6+
  • Chrome
  • Safari 4+
  • Firefox 3.5+
  • Opera

Bugs / Contributions

  • Report a bug
  • To contribute or send an idea, github message me or fork the project

Build

Uploader use UglifyJS2 you should have installed nodejs and run npm install uglify-js -g.

License

MIT License.

nice-uploader's People

Contributors

niceue avatar abel533 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.