Using plugin for uploading multiple files in existing forms


#1

How can I add an input field by a plugin to an existing form that provides upload functionality? for example I have a plugin named uploader, whenever I enable it, I want to add an upload field dynamically to the existing form (.ctp file)


#2

You could use Plugin::loaded(‘Uploader’) to check if a plugin is loaded.
When loaded you can adjust your form as desired.
API: http://api.cakephp.org/3.0/class-Cake.Core.Plugin.html#_loaded