Answers for "how to get upload file size in 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

get file size in php

$img = get_headers("file URL", 1);
echo $img["Content-Length"];
Posted by: Guest on May-13-2021

Browse Popular Code Answers by Language