Jump to content

How to get the width and height of uploaded file?


argrafic

Recommended Posts

$imagedim = getimagesize($_FILES['upload_form_name']['tmp_name'];

$width = $imagedim[0];

$height = $imagedim[1];

 

Fill in the appropriate upload form name.  This is to get the dimensions BEFORE moving the upload, right?  So you can test for size requirements?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.