Ok, I've found some useful ting in the php manual. And I can get width and hight with this function: list($width, $height, $type, $attr) = getimagesize(); the problem is that I don't know what to put in getimagesize(); I have tried with a "hard coded" (don't know the word) for examle: files/image.jpg and it works perfect. But I want the picture that the user has picked so I've tried with $_FILES['Filedata']['name'], $_FILES['name'] and so on but it dosen't work for me. What should I put in between the parenthesis?