I have a php uploadhandler class, I want to use this class in cakephp4 controller, Used the below line to connect the uploadhandler
Note: Created a folder UploadHandler under vendor directory and placed my class file(UploadHandler.php) in this location.
require_once(ROOT .DS. “vendor” . DS . “UploadHandler” . DS . “UploadHandler.php”);
$upload_handler = new UploadHandler($options, $initialize = false);
it’s returning the below error
“message”: “Class \u0027UploadHandler\UploadHandler\u0027 not found”,
Let me know the right way to use the classfile in cakephp4 controller?