Here is the html client form:
<form action="http://www.roncherry.com/ppmama/pictest.php" method="POST" enctype="multipart/form-data">
File(JPG) to Upload: <input type="file" name="fnpic" />
<input type='submit' value='Save to Servers' />
</form>
Here is the action php server code:
if ($_FILES["fnpic"]["name"]) {
list($width, $height) = getimagesize($_FILES["fnpic"]["tmp_name"]);
echo 'sizes are w= ' . $width . ' h= ' . $height;
}
Before upload width is 478, height is 640.
After upload width is 640, height is 478.
Upload works only problem is the dimension values.
Any ideas?