Jump to content

Recommended Posts

Of course you could also use getimagesize() in an if statement, and not have the upload continue if the size is not within your desired range.

 

doesn't getimagesize() require access to the full content of the image file, that is the image file is already load either in the server or another server?  so let's say you have a .php page that receives the file being uploaded.  in order for php to process the image file and determine its dimension, the file being uploaded must first finish being uploaded.  meaning that the file has already been uploaded before any php is executed, w/c is contrary to what you wanted of "prior upload".

 

Im looking for a function that will check the size of the picture prior upload.

 

now if what you mean is "...check the size of the picture prior to saving the picture in the server.", then getimagesize() fits the bill.

 

regards.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.