public function isUploadedFile($filePath)
    {
        // If it's a serialized one.
        if (filter_var($filePath, FILTER_VALIDATE_URL)) {
            return true;
        }

        // If it's a normal filename.
        $file = $this->getUploadDir()->getFile($this->getUserDirectoryHash() . '/' . $filePath);
        if ($file->exists()) {
            return true;
        }

        return false;
    }
public function isUploadedFile($filePath)
    {
        // If it's a serialized one.
        if (filter_var($filePath, FILTER_VALIDATE_URL)) {
            return true;
        }

        // If it's a normal filename.
        $file = $this->getUploadDir()->getFile($this->getUserDirectoryHash() . '/' . $filePath);
        if ($file->exists()) {
            return true;
        }

        return false;
    }
public function isUploadedFile ( $ filePath ) { // If it's a serialized one. if ( filter_var ( $ filePath , FILTER_VALIDATE_URL ) ) { return true ; } // If it's a normal filename. $ file = $ this -> getUploadDir ( ) -> getFile ( $ this -> getUserDirectoryHash ( ) . '/' . $ filePath ) ; if ( $ file -> exists ( ) ) { return true ; } return false ; }
Is the uploaded filename looks as an uploaded file.

@param $filePath

@return bool
Is the uploaded filename looks as an uploaded file .