Class HttpUploadedFile (namespace Nette\Web)
Provides access to individual files that have been uploaded by a client.
Object | --HttpUploadedFile
Public Method Summary | |
---|---|
HttpUploadedFile |
__construct
($value)
|
string |
Returns the MIME content type of an uploaded file.
|
int |
getError
()
Returns the error code. http://php.net/manual/en/features.file-upload.errors.php
|
Image |
getImage
()
Returns the image.
|
array |
getImageSize
()
Returns the dimensions of an uploaded image as array.
|
string |
getName
()
Returns the file name.
|
int |
getSize
()
Returns the size of an uploaded file.
|
string |
Returns the path to an uploaded file.
|
bool |
isImage
()
Is uploaded file GIF, PNG or JPEG?
|
bool |
isOk
()
Is there any error?
|
HttpUploadedFile |
move
(string $dest)
Move uploaded file to new location.
|
string |
__toString
()
Returns the path to an uploaded file.
|
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Method Details | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
line 49 __constructpublic HttpUploadedFile __construct ($value)
|
||||||||||||
line 80 getContentTypepublic string getContentType () Returns the MIME content type of an uploaded file.
|
||||||||||||
line 140 getErrorpublic int getError () Returns the error code. http://php.net/manual/en/features.file-upload.errors.php
|
||||||||||||
line 195 getImagepublic Image getImage () Returns the image.
|
||||||||||||
line 206 getImageSizepublic array getImageSize () Returns the dimensions of an uploaded image as array.
|
||||||||||||
line 69 getNamepublic string getName () Returns the file name.
|
||||||||||||
line 107 getSizepublic int getSize () Returns the size of an uploaded file.
|
||||||||||||
line 118 getTemporaryFilepublic string getTemporaryFile () Returns the path to an uploaded file.
|
||||||||||||
line 184 isImagepublic bool isImage () Is uploaded file GIF, PNG or JPEG?
|
||||||||||||
line 151 isOkpublic bool isOk () Is there any error?
|
||||||||||||
line 163 movepublic HttpUploadedFile move (string $dest) Move uploaded file to new location.
|
||||||||||||
line 129 __toStringpublic string __toString () Returns the path to an uploaded file.
|