diff --git a/Models/Upload.js b/Models/Upload.js index 4933d8a..95a22b3 100644 --- a/Models/Upload.js +++ b/Models/Upload.js @@ -59,6 +59,8 @@ return this.files.length; }; + // todo: maybe do file upload together with data upload in FormData. + // let the module forward the files to the media module?! jsOMS.Modules.Models.Media.Upload.prototype.upload = function (formId) { // TODO: validate file type + file size diff --git a/Theme/backend/media-single.tpl.php b/Theme/backend/media-single.tpl.php index f03ce73..1fe240e 100644 --- a/Theme/backend/media-single.tpl.php +++ b/Theme/backend/media-single.tpl.php @@ -36,6 +36,8 @@ echo $this->getData('nav')->render(); getExtension(), ['gif', 'bmp', 'jpg', 'jpeg', 'png'])) : ?> + getExtension() === 'collection') : ?> + collection