Say that I have an upload form on one of my web pages, how do I validates that all the files uploaded are images files only?(gif & jpg) And how do I specifly a maxium size in kbyte?
Thanks!
Thanks!
Welcome to the vBulletin support forums! In our community forums you can receive professional support and assistance with any issues you might have with your vBulletin Products.
Useful Links for Guests:
If you are having problems posting in the relevant areas for your software, please see this topic.
$imgtest = getimagesize($img);
if (($imgtest[2] == 1) || ($imgtest[2] == 2))
echo "Image is a JPEG or GIF";
if (($imgtest[0] < 500) || ($imgtest[1] < 500))
echo "Image is smaller then 500x500px";
Comment