_PHP - Image $_Post is not sending anything
<p>I have a html $_POST page which posts a image the name &amp; iD is called image_filename.However when i try to view what the variable value is , its blank below is the code and i cant understand where the issue is. Any suggestions would be grateful.</p>

<pre><code> $image_file = fopen($_POST['image_filename'], 'wb');

$encodedData = str_replace(' ','+',$_POST['image_file']);
$decodedData = base64_decode($encodedData);

fwrite($image_file, $decodedData);
fclose($image_file);

echo $image_file;
</code></pre>
