Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #file #selected #file #input #type #php
ADD COMMENT
Topic
Name
8+7 =