标签: php file file-upload
我想问一些可能简单而愚蠢的事情,但我在PHP文档中找不到这些信息。
$_FILE['field_name']['size']字段是否以字节为单位表示文件大小?
$_FILE['field_name']['size']
答案 0 :(得分:5)
是,
http://www.php.net/manual/en/features.file-upload.post-method.php
答案 1 :(得分:1)
file uploads info(在php.net上)
$_FILES['userfile']['size'] The size, in bytes, of the uploaded file.