📜  如果在文件输入类型中未选择文件 php 代码示例

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

代码示例1
We Could Use

For Single file:

if ($_FILES['logo']['name'] == "") {
    // No file was selected for upload, your (re)action goes here
}
For Multiple files:

if ($_FILES['logo']['tmp_name'][0] == "") {
    // No files were selected for upload, your (re)action goes here
}