From 4a3b5125cfb4f35d8a40597aca200d0d37d494dd Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Fri, 16 Nov 2012 11:58:33 +0100 Subject: [PATCH] adding comments on the form array indexes --- apps/files/js/files.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 8b3ab06e6f..bb80841055 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -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) {