Zend Framework  3.0
Public Member Functions | List of all members
UploadedFile Class Reference

Public Member Functions

 __construct ($streamOrFile, $size, $errorStatus, $clientFilename=null, $clientMediaType=null)
 
 getStream ()
 {}
 
 moveTo ($targetPath)
 {}
 
 getSize ()
 {}
 
 getError ()
 {}
 
 getClientFilename ()
 {}
 
 getClientMediaType ()
 {}
 

Constructor & Destructor Documentation

__construct (   $streamOrFile,
  $size,
  $errorStatus,
  $clientFilename = null,
  $clientMediaType = null 
)
Parameters
string | resource$streamOrFile
int$size
int$errorStatus
string | null$clientFilename
string | null$clientMediaType
Exceptions
InvalidArgumentException

Member Function Documentation

getClientFilename ( )

{}

Returns
string|null The filename sent by the client or null if none was provided.
getClientMediaType ( )

{}

getError ( )

{}

See Also
http://php.net/manual/en/features.file-upload.errors.php
Returns
int One of PHP's UPLOAD_ERR_XXX constants.
getSize ( )

{}

Returns
int|null The file size in bytes or null if unknown.
getStream ( )

{}

Exceptions
\RuntimeExceptionif the upload was not successful.
moveTo (   $targetPath)

{}

See Also
http://php.net/is_uploaded_file
http://php.net/move_uploaded_file
Parameters
string$targetPathPath to which to move the uploaded file.
Exceptions
\RuntimeExceptionif the upload was not successful.
\InvalidArgumentExceptionif the $path specified is invalid.
\RuntimeExceptionon any error during the move operation, or on the second or subsequent call to the method.