php calculate file size upload code example
Example: 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
##put these directives in a php.ini file in the root of files
upload_max_filesize = 10M
post_max_size = 10M