There is a code
$image = $_FILES['img']; //echo (print_r($_FILES['img'])); { if (move_uploaded_file($image['tmp_name'],'/../web/avatars/')) return 'success'; else return 'failure'; } Attempting to download the file returns the error failed to open stream: No such file or directory & # 039