我想检查它是否为空,如果它不是空的,那么它不应该尝试和上传文件.我该如何检查?
if($_FILES["file"]["error"] != 0) { //stands for any kind of errors happen during the uploading }
也有
if($_FILES["file"]["error"] == 4) { //means there is no file uploaded }