Skip to content

realtica/uploaderList

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

JQuery Uploader List

jQuery plugin to upload a file queue.

Sponsor

[http://www.cloudware360.com/]

Features

  • Configurable upload
  • Options for simultaneous upload (default: 2).
  • Allows adding extra data.
  • Allows file rename.
  • Automatic mode. (default automatic:true).
  • Customizable through css.

Dependencies

Usage

Example 1: very basic test

In HTML:

<!-- 1.- Basic Control -->
<input type="file" id="file" multiple />
<!-- Basic Control -->

<!-- 2.- Editable Template-->
<div class="ui-widget-content">
<div data-bind="template: { name: 'uploaderList', foreach: model }"></div>
</div>
<script type="text/html" id="uploaderList">   
<div class="uploaderListItem">
<div data-bind="text: file_name" class="uploaderListFileName" style="float:left"></div>
<div style="float:right">
<span data-bind="text: loaded"></span>/<span data-bind="text: total"></span>
  </div>
  <div data-bind="updateProgress: progress" style="clear:both">  
  </div></div>
</script>
<!--Editable Template-->

<!-- 3.- Include Resources-->
<link href="js/uploaderList/jquery.uploaderList.css" rel="stylesheet" type="text/css">
<script src="js/uploaderList/jquery.uploaderList.js" type="text/javascript"></script>
<!--Include Resources-->

Into JQuery onload:

$("#file").uploadlist({url : "http://myserver.com/"});

Example 2: Manual mode and 5 simoultaneos file upload.

In HTML:

<!-- 1.- Basic Control -->
<input type="file" id="file" multiple />
<!-- Basic Control -->

<!-- 2.- Editable Template-->
<div class="ui-widget-content">
<div data-bind="template: { name: 'uploaderList', foreach: model }"></div>
</div>
<script type="text/html" id="uploaderList">   
<div class="uploaderListItem">
<div data-bind="text: file_name" class="uploaderListFileName" style="float:left"></div>
<div style="float:right">
<span data-bind="text: loaded"></span>/<span data-bind="text: total"></span>
  </div>
  <div data-bind="updateProgress: progress" style="clear:both">  
  </div></div>
</script>
<!--Editable Template-->

<!--Start Button-->
<button id="btn_file" >START</button>
<!--Start Button-->

<!-- 3.- Include Resources-->
<link href="js/uploaderList/jquery.uploaderList.css" rel="stylesheet" type="text/css">
<script src="js/uploaderList/jquery.uploaderList.js" type="text/javascript"></script>
<!--Include Resources-->

Into JQuery onload:

$("#file").uploaderList({
    url : "http://myserver.com/",
    automatic : false,
    simultaneousUploads : 5
}); 

That it's all Enjoy.

License

GNU GPLv3.

About

uploaderList

Resources

Stars

Watchers

Forks

Packages

No packages published