Packages

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • none

Classes

Interfaces

  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class HttpUploadedFile

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

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

Returns the file name.

Returns the file name.

Returns

string
public string
# getSanitizedName( )

Returns the sanitized file name.

Returns the sanitized 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 HttpUploadedFile
# move( string $dest )

Move uploaded file to new location.

Move uploaded file to new location.

Parameters

$dest
string

Returns

HttpUploadedFile
public boolean
# isImage( )

Is uploaded file GIF, PNG or JPEG?

Is uploaded file GIF, PNG or JPEG?

Returns

boolean
public Image
# toImage( )

Returns the image.

Returns the image.

Returns

Image
public array
# getImageSize( )

Returns the dimensions of an uploaded image as array.

Returns the dimensions of an uploaded image as array.

Returns

array
public string
# getContents( )

Get file contents.

Get file contents.

Returns

string
Methods inherited from Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Magic properties summary
public read-only string $name
#
public read-only string $sanitizedName
#
public read-only string $contentType
#
public read-only integer $size
#
public read-only string $temporaryFile
#
public read-only integer $error
#
public read-only boolean $ok
#
public read-only boolean $image
#
public read-only array $imageSize
#
public read-only string $contents
#
Magic properties inherited from Object
$reflection
Nette Framework 2.0.18 (for PHP 5.2, un-prefixed) API documentation generated by ApiGen 2.8.0