I'm receiving this warning occasionally. Not all the time. And even with this warning, the file is uploaded successfully. I hope you can help me get rid of it.
I'm using php7.4 and the uploaded image file name is "WhatsApp Image 2021-12-30 at 10-20-23 AM.jpg". Sometimes I uploaded files are from mobile devices and most of time have Arabic letters in file names.
PHP Warning: mime_content_type(): Empty filename or path in /****/filemanager/upload.php on line 117
PHP Warning: fopen(): Filename cannot be empty in /****/filemanager/UploadHandler.php on line 1089
PHP Warning: fread() expects parameter 1 to be resource, bool given in /****/filemanager/UploadHandler.php on line 1090
PHP Warning: fclose() expects parameter 1 to be resource, bool given in /****/filemanager/UploadHandler.php on line 1091
I'm receiving this warning occasionally. Not all the time. And even with this warning, the file is uploaded successfully. I hope you can help me get rid of it. I'm using php7.4 and the uploaded image file name is "WhatsApp Image 2021-12-30 at 10-20-23 AM.jpg". Sometimes I uploaded files are from mobile devices and most of time have Arabic letters in file names.
Code at upload.php at line 117
Code at UploadHandler.php at line 1089: