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.
|
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 |
isOK
()
Is there any error?
|
bool |
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 56 __constructpublic HttpUploadedFile __construct ($value)
|
||||||||||||
line 91 getContentTypepublic string getContentType () Returns the MIME content type of an uploaded file.
|
||||||||||||
line 158 getErrorpublic int getError () Returns the error code.
|
||||||||||||
line 136 getImagepublic Image getImage () Returns the image.
|
||||||||||||
line 198 getImageSizepublic array getImageSize () Returns the dimensions of an uploaded image as array.
|
||||||||||||
line 80 getNamepublic string getName () Returns the file name.
|
||||||||||||
line 114 getSizepublic int getSize () Returns the size of an uploaded file.
|
||||||||||||
line 125 getTemporaryFilepublic string getTemporaryFile () Returns the path to an uploaded file.
|
||||||||||||
line 169 isOKpublic bool isOK () Is there any error?
|
||||||||||||
line 181 movepublic bool move (string $dest) Move uploaded file to new location.
|
||||||||||||
line 147 __toStringpublic string __toString () Returns the path to an uploaded file.
|