Using 2.1.3, I'd like to add an image uploader to a custom admin module I'm building.
I've gotten as far as copying vendor/magento/module-catalog/view/adminhtml/web/catalog/base-image-uploader.js
to my module, renamed it and included it in my requirejs-config.js
file - but it looks like it needs a specific x/magento-template
to generate the uploader. (Ultimately I'll rework the ajax call to target a controller in my module as well as make additions to the success methods)
Does anyone have any tips on how to go about adding Magento 2's base image uploader to a custom module?