Browser Support:
The plugin is tested on:
- Microsoft Internet Explorer 7.0+
- Google Chrome - 7.0+
- Safari - 4.0+
- Mozilla Firefox - 3.0+
- Opera - 10.0+
Plugins Option:
$(function(){ $('#yourInputFileId').fileUploader({ autoUpload: false, limit: false, buttonUpload: '#px-submit', buttonClear: '#px-clear', selectFileLabel: 'Select files', allowedExtension: 'jpg|jpeg|gif|png', timeInterval: [1, 2, 4, 2, 1, 5], //Mock percentage for iframe upload percentageInterval: [10, 20, 30, 40, 60, 80], //Callbacks onValidationError: function(e) { }, onFileChange: function(e, form) { }, onFileRemove: function(e) { }, beforeUpload: function(e) { }, beforeEachUpload: function(form) { }, afterEachUpload: function(data, status, formContainer) { }, afterUpload: function(formContainer) { } }); });
Option:
| OPTION | DEFAULT VALUE | DESCRIPTION |
| limit | false | Limits the file to be uploaded |
| buttonUpload | #pxUpload | Selector of the button Upload |
| buttonClear | #pxClear | Selector of the button Clear |
| allowedExtension | jpg|jpeg|png|gif | allow extensions. Make sure that when using "|" the next string is not empty or else all of file extensions are allowed |
| onValidationError | null |
return function(e) { } Custom message if invalid file is selected |
| onFileChange | empty function |
return function(e, form) { } trigger after the file is selected |
| onFileRemove | empty function |
return function(e) { } trigger after the file is removed |
| beforeUpload | empty function |
return function(e) { } trigger after the submit button is click |
| beforeEachUpload | empty function |
return function(form) { } trigger before each file could be uploaded ::: returns each Form |
| afterEachUpload | empty function |
function(data, , status, formContainer) { } trigger after each file has been uploaded data: is the data that is sent from the controller status: success, abort, error formContainer: form container |
| afterUpload | empty function |
return function(e) { } trigger after all files are uploaded |

