adding comments on the form array indexes
This commit is contained in:
parent
2b192a75c4
commit
4a3b5125cf
|
@ -286,6 +286,9 @@ $(document).ready(function() {
|
||||||
var jqXHR = $('.file_upload_start').fileupload('send', {files: files[i],
|
var jqXHR = $('.file_upload_start').fileupload('send', {files: files[i],
|
||||||
formData: function(form) {
|
formData: function(form) {
|
||||||
var formArray = form.serializeArray();
|
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;
|
formArray[2]['value'] = dirName;
|
||||||
return formArray;
|
return formArray;
|
||||||
}}).success(function(result, textStatus, jqXHR) {
|
}}).success(function(result, textStatus, jqXHR) {
|
||||||
|
|
Loading…
Reference in New Issue