adding comments on the form array indexes

This commit is contained in:
Thomas Mueller 2012-11-16 11:58:33 +01:00
parent 2b192a75c4
commit 4a3b5125cf
1 changed files with 3 additions and 0 deletions

View File

@ -286,6 +286,9 @@ $(document).ready(function() {
var jqXHR = $('.file_upload_start').fileupload('send', {files: files[i],
formData: function(form) {
var formArray = form.serializeArray();
// array index 0 contains the max files size
// array index 1 contains the request token
// array index 2 contains the directory
formArray[2]['value'] = dirName;
return formArray;
}}).success(function(result, textStatus, jqXHR) {