namespace Nette\Web
Class HttpUploadedFile
Provides access to individual files that have been uploaded by a client.
- Nette\Object
-
Nette\Web\HttpUploadedFile
public
|
#
__construct(
$value
)
|
public
string
|
#
getName(
)
Returns the file name. Returns the file name. |
public
string
|
#
getContentType(
)
Returns the MIME content type of an uploaded file. Returns the MIME content type of an uploaded file. |
public
int
|
#
getSize(
)
Returns the size of an uploaded file. Returns the size of an uploaded file. |
public
string
|
#
getTemporaryFile(
)
Returns the path to an uploaded file. Returns the path to an uploaded file. |
public
string
|
#
__toString(
)
Returns the path to an uploaded file. Returns the path to an uploaded file. |
public
int
|
#
getError(
)
Returns the error code. {@link http://php.net/…d.errors.php} Returns the error code. {@link http://php.net/…d.errors.php} |
public
bool
|
#
isOk(
)
Is there any error? Is there any error? |
public
HttpUploadedFile
|
#
move(
string
$dest
)
Move uploaded file to new location. Move uploaded file to new location. Parameters$dest stringReturnsHttpUploadedFile provides a fluent interface
|
public
bool
|
#
isImage(
)
Is uploaded file GIF, PNG or JPEG? Is uploaded file GIF, PNG or JPEG? |
public
Nette\Image
|
#
toImage(
)
Returns the image. Returns the image. |
public
array
|
#
getImageSize(
)
Returns the dimensions of an uploaded image as array. Returns the dimensions of an uploaded image as array. |
public
string
|
#
getContents(
)
Get file contents Get file contents |