PHP Interface ManaPHP\Http\Request\FileInterface

Afficher le fichier Open project: manaphp/manaphp

Méthodes publiques

Méthode Description
getExtension ( ) : string Returns the file extension
getKey ( ) : string Returns the file key
getName ( ) : string Returns the real name of the uploaded file
getSize ( ) : integer Returns the file size of the uploaded file
getTempName ( ) : string Returns the temporal name of the uploaded file
getType ( ) : string Returns the mime type reported by the browser This mime type is not completely secure, use getRealType() instead
moveTo ( string $dst, string | false $allowedExtensions = 'jpg,jpeg,png,gif,doc,xls,pdf,zip' ) Move the temporary file to a destination

Method Details

getExtension() public méthode

Returns the file extension
public getExtension ( ) : string
Résultat string

getKey() public méthode

Returns the file key
public getKey ( ) : string
Résultat string

getName() public méthode

Returns the real name of the uploaded file
public getName ( ) : string
Résultat string

getSize() public méthode

Returns the file size of the uploaded file
public getSize ( ) : integer
Résultat integer

getTempName() public méthode

Returns the temporal name of the uploaded file
public getTempName ( ) : string
Résultat string

getType() public méthode

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

moveTo() public méthode

Move the temporary file to a destination
public moveTo ( string $dst, string | false $allowedExtensions = 'jpg,jpeg,png,gif,doc,xls,pdf,zip' )
$dst string
$allowedExtensions string | false