如何从windows中将图像保存到linux上的文件夹中

So i want to save an image from windows to my linux folder im using LAMP i create a php for save images into a folder on windows works perfectly but when i upload the file to linux, and i tested dont work this is the php im using the redbean framework.

The server I did it with lamp and I use google chrome to access it when I select the image to insert it saves the route but it does not save the image in the folder of the server that is in linux

Other thing i open the server via google chrome and it's work the php save the text the img url but dont save the image into the linux folder.

CODE:

<?php
require('conexion.php');
$b=R::dispense('blog');
$fileName=$_FILES['imagen']['name'];

$file=$_FILES['imagen']['tmp_name'];

if (is_uploaded_file($file))
{
        echo $fileName;
        $destino="/var/www/html/blog/imgsubidas/".$fileName;
                move_uploaded_file($file,$destino);
$b->titulo=$_POST["titulo"];
$b->imagen=$destino;
$b->contenido=$_POST["content"];
$b->fecha=date("d/m/Y");
        R::store($b);

        header('location:dashboard.php');
}
?>