📜  检查在 php 代码示例中选择的文件

📅  最后修改于: 2022-03-11 14:53:48.735000             🧑  作者: Mango

代码示例1
if(!isset($_FILES['file_upload']) || $_FILES['file_upload']['error'] == UPLOAD_ERR_NO_FILE) {
    echo "Error no file selected"; 
} else {
    print_r($_FILES);
}