CKFinder tempDirectory not working on Linux?

Solution for CKFinder tempDirectory not working on Linux?
is Given Below:

I’m using ckeditor v5 and ckfinder 3

On my local tempDir is working

// $config['tempDirectory'] = sys_get_temp_dir();
$config['tempDirectory'] = 'C:xampphtdocslabelinpublicuploads';

but when I tried to upload the project on linux and the code like this

  // $config['tempDirectory'] = sys_get_temp_dir();
 //$config['tempDirectory'] = 'C:xampphtdocslabelinpublicuploads';
 $config['tempDirectory'] = '/var/www/html/labelin/public/uploads';

it gives me error like this

enter image description here

Note: im already using sudo chmod -R 777 public

just to make it work.