diff --git a/lib/form/dndupload.js b/lib/form/dndupload.js index 60b78bb4091..b53446d6a6c 100644 --- a/lib/form/dndupload.js +++ b/lib/form/dndupload.js @@ -83,15 +83,17 @@ M.form_dndupload.init = function(Y, options) { Y.one('body').addClass('dndnotsupported'); return; // Browser does not support the required functionality } - Y.one('body').addClass('dndsupported'); // try and retrieve enabled upload repository this.repositoryid = this.get_upload_repositoryid(options.repositories); if (!this.repositoryid) { + Y.one('body').addClass('dndnotsupported'); return; // no upload repository is enabled to upload to } + Y.one('body').addClass('dndsupported'); + this.options = options; this.acceptedtypes = options.acceptedtypes; this.clientid = options.clientid;