I have the following code:
$filecheck = basename($_FILES[\'imagefile\'][\'name\']); $ext = substr($filecheck, strrpos($filecheck, \'.\') + 1); if (($ext
Php is a server side scripting language and if the pictures are at client side, you can't check their size via php before upload.