read categories and keywords from drag and drop area

This commit is contained in:
Uwe Steinmann 2022-03-09 08:39:20 +01:00
parent 2fa2d33fe9
commit a7212a0708
2 changed files with 8 additions and 0 deletions

View File

@ -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();

View File

@ -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();