Hi I am trying $_FILES['imgfile1']['size'] PHP: to find image size but if the image size is more than 1.7MB it don't gives me output or sometimes it says "0" any solution? thank you dizyn
hmm, i'm not sure but i havent heard about this limitation before, can you try and print out the value of $_FILES array just to be sure that it's only the size that you are missing ex: print_r($_FILES)
Do not echo, rather print_r($_FILES). Two things you need to know: * Does your HTML form has enctype setup correctly? * If file uploaded is more than the allowed limit in php.ini, it will also return 0. Peace,
also put an enctype="multipart/form-data" on your form tag <form method="POST" name="form" enctype="multipart/form-data" >