Multiple file upload jQuery plugin with progress-bar, using html5 and flash technology.
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..
}
});mode: "html5"action: ""name: "file"formData: null{object|function}multiple: falseauto: trueshowQueue: falsefileSizeLimit: 0fileTypeDesc: ""fileTypeExts: ""onInit: nooponClearQueue: nooponSelected: nooponCancel: nooponError: nooponStart: nooponProgress: nooponSuccess: nooponComplete: nooponAllComplete: nooponMouseOver: nooponMouseOut: nooponMouseClick: nooponAddQueue: default function
$("#upload_btn").uploader("start");
$("#upload_btn").uploader("cancel", 0);
$("#upload_btn").uploader("cancel", "*");
- IE6+
- Chrome
- Safari 4+
- Firefox 3.5+
- Opera
- Report a bug
- To contribute or send an idea, github message me or fork the project
Uploader use UglifyJS2
you should have installed nodejs and run npm install uglify-js -g.