Answers for "upload image size php"

PHP
1

php.ini upload image size

##put these directives in a php.ini file in the root of files
upload_max_filesize = 10M
post_max_size = 10M
Posted by: Guest on May-08-2021
0

php check image size before upload

$image_size = $_FILES["inputname"]["size"];
if($image_size > 10000){
	echo "size too large";
}
Posted by: Guest on June-12-2021

Browse Popular Code Answers by Language