Check whether the specified file is uploaded via HTTP POST is_uploaded_file() function in PHP
Description
The following code shows how to check whether the specified file is uploaded via HTTP POST is_uploaded_file() function.
Example
/*w w w. jav a2s .c om*/
<?php
$file = "test.txt";
if(is_uploaded_file($file)){
echo ("$file is uploaded via HTTP POST");
}else{
echo ("$file is not uploaded via HTTP POST");
}
?>
The code above generates the following result.