Error with multiple file upload widget in Mendix 5

3
I have wrapped the dropzone widget for multiple file upload in Mendix (will publish in the app store). This works perfectly for Mendix 3 and 4 but in 5 I get a dojo 'defineMultiple'. The widget don't uses jquery, but some snippets 'require' and 'emit'.
asked
2 answers
0

Thanks to Andries Smit a version for Mendix 5 is submitted to the appstore.

answered
0

The quick fix to get it working is to remove the AMD loading of dropzone and just expose the "Dropzone" via global scope.

//if (typeof exports == "object") {
//  module.exports = require("dropzone");
//} else if (typeof define == "function" && define.amd) {
//  define(function(){ return require("dropzone"); });
//} else {
  this["Dropzone"] = require("dropzone");
//}
})();
answered