classe UploadFile (Voir la source)

Méthodes

__construct(array $file)

UploadFile constructor.

string
getExtension()

Get the file extension

string
extension()

The is getExtension alias

string
getTypeMime()

Get the file extension

mixed
getFilesize()

Get the size of the file

bool
isUploaded()

Check if the file is uploader

string
getBasename()

Get the main name of the file

mixed
getFilename()

Get the filename

string
getContent()

Get the file content

string
getHashName()

Get the file hash name

bool
moveTo(string $to, string|null $filename = null)

Move the uploader file to a directory.

Détails

__construct(array $file)

UploadFile constructor.

Paramètres

array $file

string getExtension()

Get the file extension

Valeur de retour

string

string extension()

The is getExtension alias

Valeur de retour

string

string getTypeMime()

Get the file extension

Valeur de retour

string

mixed getFilesize()

Get the size of the file

Valeur de retour

mixed

bool isUploaded()

Check if the file is uploader

Valeur de retour

bool

string getBasename()

Get the main name of the file

Valeur de retour

string

mixed getFilename()

Get the filename

Valeur de retour

mixed

string getContent()

Get the file content

Valeur de retour

string

string getHashName()

Get the file hash name

Valeur de retour

string

bool moveTo(string $to, string|null $filename = null)

Move the uploader file to a directory.

Paramètres

string $to
string|null $filename

Valeur de retour

bool

Exceptions