I have a very simple php script :
<?
$received:file = $_POST['file'];
// do something with it
?>
I'm trying to post the content of a local file (unix) using wget.
wget --post-data='operation=upload' --post-file myfile
seems to post but don't attach to any 'field'.
How can I do that ?
Do you really need
wget
? Actually upon reading the wget man page ... wget can't do what you want it to do.You can use
curl
Get the file with: