开发者

$_FILES['']['size'] - does PHP check file size on server side?

开发者 https://www.devze.com 2023-01-29 00:35 出处:网络
when a file is uploaded using a PHP script, which is the best way to check file size? $_FILES[\'\'][\'size\'] OR filesize()?

when a file is uploaded using a PHP script, which is the best way to check file size?

$_FILES['']['size'] OR filesize()?

the value in $_FILES['']['size'] - does PHP check the file size in the server, or is it the value sent by the browser while uploading the file?

开发者_StackOverflow社区

$_FILES['']['type'] - is the value sent by the browser, and has a security problem while uploading the file. is $_FILES['']['size'] like this?


you have the manual here

http://www.php.net/manual/en/features.file-upload.post-method.php

size is the actual size of the file on the server

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号