PHPDaemon\HTTPRequest\Generic::isUploadedFile PHP Method

isUploadedFile() public method

Tells whether the file was uploaded via HTTP POST
public isUploadedFile ( string $path ) : boolean
$path string The filename being checked
return boolean Whether if this is uploaded file
    public function isUploadedFile($path)
    {
        if (!$path) {
            return false;
        }
        if (mb_orig_strpos($path, $this->getUploadTempDir() . '/') !== 0) {
            return false;
        }
        foreach ($this->attrs->files as $file) {
            if ($file['tmp_name'] === $path) {
                return true;
            }
        }
        return false;
    }