Http\Request\File::getType

public getType () Returns the mime type reported by the browser This mime type is not completely secure, use getRealType() instead

Http\Request\File::getTempName

public getTempName () Returns the temporary name of the uploaded file

Http\Request\File::getSize

public getSize () Returns the file size of the uploaded file

Http\Request\File::getRealType

public getRealType () Gets the real mime type of the upload file using finfo

Http\Request\File::getName

public getName () Returns the real name of the uploaded file

Http\Request\File::getKey

public getKey ()

Http\Request\File::getExtension

public getExtension ()

Http\Request\File::getError

public getError ()

Http\Request\File

implements Phalcon\Http\Request\FileInterface Source on GitHub Provides OO wrappers to the $_FILES superglobal use Phalcon\Mvc\Controller; class PostsController extends Controller { public function uploadAction() { // Check if the user has uploaded files if ($this->request->hasFiles() == true) { // Print the real file names and their sizes foreach ($this->request->getUploadedFiles() as $file) { echo $file->getName(), " ", $file->

Http\Request\Exception

extends class Phalcon\Exception implements Throwable Source on GitHub Methods final private Exception __clone () inherited from Exception Clone the exception public __construct ([string $message], [int $code], [Exception $previous]) inherited from Exception Exception constructor public __wakeup () inherited from Exception ... final public string getMessage () inherited from Exception Gets the Exception message final public int getCode () inherited from Exception Gets the Exception code fin