Class HttpUploadedFile (namespace Nette\Web)


Provides access to individual files that have been uploaded by a client.

Object
   |
   --HttpUploadedFile
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Web/HttpUploadedFile.php (line 34)
Public Method Summary
HttpUploadedFile
__construct ($value)
string
Returns the MIME content type of an uploaded file.
int
Returns the error code.
Image
Returns the image.
array
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
Returns the path to an uploaded file.
Methods Inherited From Object
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()

Method Details

line 56

__construct

public HttpUploadedFile __construct ($value)

Input
$value
Output
HttpUploadedFile  

line 91

getContentType

public string getContentType ()

Returns the MIME content type of an uploaded file.

Output
string  

line 158

getError

public int getError ()

Returns the error code.

Output
int  

line 136

getImage

public Image getImage ()

Returns the image.

Output
Image  

line 198

getImageSize

public array getImageSize ()

Returns the dimensions of an uploaded image as array.

Output
array  

line 80

getName

public string getName ()

Returns the file name.

Output
string  

line 114

getSize

public int getSize ()

Returns the size of an uploaded file.

Output
int  

line 125

getTemporaryFile

public string getTemporaryFile ()

Returns the path to an uploaded file.

Output
string  

line 169

isOK

public bool isOK ()

Is there any error?

Output
bool  

line 181

move

public bool move (string $dest)

Move uploaded file to new location.

Input
string $dest
Output
bool  

line 147

__toString

public string __toString ()

Returns the path to an uploaded file.

Output
string