Using a very simple PHP server:
<?php
$file = date("YmdHisms") . ".jpg";
file_put_contents($file, file_get_contents("php://input"));
?>
I'm trying to upload images using cURL:
curl --data "/path/to/image.jpg" 'http://192.168.1.3'
or:
upload multiple files to php server using curl command line
curl -F "[email protected]" 'http://192.168.1.3'
or:
cat image.jpg | curl --data - 'http://192.168.1.3'
Files are getting created in my web sever directory, but the images don't seem to open? What am I getting wrong here?