This is the code that presents the form which will pass on the uploaded picture to the process_image.php:
This form allows you to upload a file to the server.<br>
<form enctype="multipart/form-data" action="process_file.php" method="POST"><br>
Type (or select) Filename: <input type="file" name="uploadFile"><br>
<input type="submit" value="Upload File">
</form>
and this is the php that is supposed to process that image and show it:
<?php
header( "Content-Type: image/png" );
$im = imagecreatefrompng($_FILES["uploadFile"]["tmp_name"]);
imagepng($im);
?>
However when I run this all I get on the second page is a broken image.