By commenting the lines below, the error: invalid file size disappears, the file is loaded in the correct folder, but its size is always 0 bytes
// if(!isset($file[‘size’]) || empty($file[‘size’])) json_error(‘invalid file size’);
// if(config::$config[‘upload_max_filesize’] && $file[‘size’] >...