summaryrefslogtreecommitdiff
path: root/src/web/app/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/app/common')
-rw-r--r--src/web/app/common/tags/uploader.tag2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/web/app/common/tags/uploader.tag b/src/web/app/common/tags/uploader.tag
index d40ac0a6a0..845cd9d127 100644
--- a/src/web/app/common/tags/uploader.tag
+++ b/src/web/app/common/tags/uploader.tag
@@ -145,6 +145,8 @@
this.uploads = [];
this.upload = (file, folder) => {
+ if (folder && typeof folder == 'object') folder = folder.id;
+
const id = Math.random();
const ctx = {