UploadedFile.php
system/HTTP/Files/UploadedFile.php
1 class
16 methods
class UploadedFile
Value object representing a single file uploaded through an HTTP request. Used by the IncomingRequest class to provide files. Typically, implementors will extend the SplFileInfo class.
__construct
(string $path, string $originalName, ?string $mimeType = null, ?int $size = null, ?int $error = null, ?string $clientPath = null)
move
(string $targetPath, ?string $name = null, bool $overwrite = false)
setPath
(string $path)
hasMoved
()
getError
()
getErrorString
()
getClientMimeType
()
getName
()
getClientName
()
getClientPath
()
getTempName
()
getExtension
()
guessExtension
()
getClientExtension
()
isValid
()
store
(?string $folderName = null, ?string $fileName = null)