Namespaces

  • Nette
    • Application
    • Caching
    • Collections
    • Config
    • Forms
    • IO
    • Loaders
    • Mail
    • Reflection
    • Security
    • Templates
    • Web
  • None
  • PHP

Classes

  • Ftp
  • Html
  • HttpContext
  • HttpRequest
  • HttpResponse
  • HttpUploadedFile
  • Session
  • SessionNamespace
  • Uri
  • UriScript
  • User

Interfaces

  • IHttpRequest
  • IHttpResponse
  • IUser

Exceptions

  • FtpException
  • Overview
  • Namespace
  • Class
  • Tree
  • Other releases

Class HttpUploadedFile

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

Nette\Object
Extended by Nette\Web\HttpUploadedFile
Namespace: Nette\Web
Author: David Grudl
Located at Web/HttpUploadedFile.php
Methods summary
public
# __construct( $value )
public string
# getName( )

Returns the file name.

Returns the file name.

Returns

string
public string
# getContentType( )

Returns the MIME content type of an uploaded file.

Returns the MIME content type of an uploaded file.

Returns

string
public integer
# getSize( )

Returns the size of an uploaded file.

Returns the size of an uploaded file.

Returns

integer
public string
# getTemporaryFile( )

Returns the path to an uploaded file.

Returns the path to an uploaded file.

Returns

string
public string
# __toString( )

Returns the path to an uploaded file.

Returns the path to an uploaded file.

Returns

string
public integer
# getError( )

Returns the error code. http://php.net/manual/en/features.file-upload.errors.php

Returns the error code. http://php.net/manual/en/features.file-upload.errors.php

Returns

integer
public boolean
# isOk( )

Is there any error?

Is there any error?

Returns

boolean
public Nette\Web\HttpUploadedFile
# move( string $dest )

Move uploaded file to new location.

Move uploaded file to new location.

Parameters

$dest
string

Returns

Nette\Web\HttpUploadedFile
provides a fluent interface
public boolean
# isImage( )

Is uploaded file GIF, PNG or JPEG?

Is uploaded file GIF, PNG or JPEG?

Returns

boolean
public Nette\Image
# getImage( )

Returns the image.

Returns the image.

Returns

Nette\Image
public array
# getImageSize( )

Returns the dimensions of an uploaded image as array.

Returns the dimensions of an uploaded image as array.

Returns

array
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Nette Framework 0.9.7 API documentation generated by ApiGen 2.3.0