diff --git a/views/bootstrap/styles/application.js b/views/bootstrap/styles/application.js index 0d56d5d5b..7f3db95b8 100644 --- a/views/bootstrap/styles/application.js +++ b/views/bootstrap/styles/application.js @@ -822,9 +822,13 @@ function onAddClipboard(ev) { /* {{{ */ if (typeof obj.data('comment') !== 'undefined') { fd.append('comment', obj.data('comment')); } + if (typeof obj.data('keywords') !== 'undefined') { + fd.append('keywords', obj.data('keywords')); + } fd.append('userfile', files[i]); fd.append('command', 'uploaddocument'); this.getFormData(fd, obj.data('attributes'), 'attributes'); + this.getFormData(fd, obj.data('categories'), 'categories'); // fd.append('path', files[i].webkitRelativePath); statusbar.parent().show(); diff --git a/views/bootstrap4/styles/application.js b/views/bootstrap4/styles/application.js index 9064aae17..e95fe79cd 100644 --- a/views/bootstrap4/styles/application.js +++ b/views/bootstrap4/styles/application.js @@ -853,9 +853,13 @@ function onAddClipboard(ev) { /* {{{ */ if (typeof obj.data('comment') !== 'undefined') { fd.append('comment', obj.data('comment')); } + if (typeof obj.data('keywords') !== 'undefined') { + fd.append('keywords', obj.data('keywords')); + } fd.append('userfile', files[i]); fd.append('command', 'uploaddocument'); this.getFormData(fd, obj.data('attributes'), 'attributes'); + this.getFormData(fd, obj.data('categories'), 'categories'); // fd.append('path', files[i].webkitRelativePath); statusbar.parent().show();