Answers for "if file is not selected in file input type php"

PHP
0

if file is not selected in file input type php

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
}
Posted by: Guest on October-18-2021

Code answers related to "if file is not selected in file input type php"

Browse Popular Code Answers by Language