Hello
I would like to send to my server with app inventor an image (canvas).
I already save the canvas and I know where the canvas is stored on my phone.
I found this solution on internet but when I receive the file, the file's name is good but it is empty. So it doesn't work.
Do you know why the file is empty and how can I solve this problem ? If this solution doesn't work have you got other solutions to send an image from my phone to a server ?
The php request is :
<?PHP
$data = file_get_contents('php://input');
if (!(file_put_contents($_GET['fileName'],$data) === FALSE)) echo "File xfer completed."; // file could be empty, though
else echo "File xfer failed.";
?>