我在这里遇到了以下用于验证上传文件的代码: http: //php.net/manual/en/features.file-upload.php
// Undefined | Multiple Files | $_FILES Corruption Attack
// If this request falls under any of them, treat it invalid.
if (
!isset($_FILES['upfile']['error']) ||
is_array($_FILES['upfile']['error'])
) {
Run Code Online (Sandbox Code Playgroud)
但什么是“$_FILES 损坏攻击”?
上述守则(如何)防止这种情况发生?
如果我想上传多个文件,我该如何更改它?