So the issue I am having is it seems I cant send the file I want to the server.
I am not sure if I am doing something wrong, but thought I would ask
<?
$file = file_get_contents($HTTP_POST_FILES['img']);
print $file;
?>
<form action="" method="post">
<input type="file" name="img" />
<input type="submit" value="submit"/>
</form>
You need to set the correct
enctypeto multipart/form-data on the form if you want to be able to upload files to the server: