issues for Uploader with PHP Slim framework

Hello,
i am using uploader to upload image files to server. i have made autoupload setting to false. When i click upload button i execute $$(‘upl1’).send() function.
this function sends post request to my local servers ‘api/upload’.
In the back-end i am using Slim framework to process server request.
i have named upload function to ‘api/upload’ url.
when i try to get the uploaded files using $request->getUploadedFiles(),
it sends blank array.
any solution to this pronlem?

I am facing the same problem. I am using a (https://www.cloudways.com/en/php-hosting.php ) host with PHP 7.3. I have created and upload form using Slim framework. I am also getting an empty array when uploading the files.