ftp_put and $FILE upload in ftp file with 0kb

Good morning, how I fast explained in the title I’ve a problem uploading file via form (wpcf7) in to ftp. File will be upload but with 0kb. I tried and search a solution on web but nothing.

Following the code that upload file with 0kb:

$image = $_FILES['file-799']['tmp_name'];
$image_name = $_FILES['file-799']['name'];
if(ftp_put($ftp_conn, $image_name, $_SERVER['DOCUMENT_ROOT'] . $image,FTP_BINARY));
ftp_close($ftp_conn);
fclose($myfile);

I tried also following code but work worse (doenst upload anything)

$image = $_FILES['file-799']['tmp_name'];
$image_name = $_FILES['file-799']['name'];
if(ftp_put($ftp_conn, $image_name, $image,FTP_BINARY));

Thank you for any feedback