Class UploadFile

Description

Upload class - wrapper for uploading files.

Upload class - wrapper for uploading files.

  • version: $Id: class.UploadFile.inc,v 1.6 2003/08/07 21:20:23 letreo Exp $
  • access: public
  • author: Michael Oertel <michael@ortelius.de>

Located in /include/class.UploadFile.inc (line 38)


	
			
Variable Summary
 array $errors
 string $path
 integer $size_bytes
 integer $size_x
 integer $size_y
 array $types
Method Summary
 UploadFile UploadFile (array $file_attributes, mixed $file_type)
 boolean check (array 0)
 array get_errors ()
 string get_upload_path ()
 void set_types (array $types)
 string set_upload_path (mixed $path)
 boolean upload ([mixed $mode = 1])
Variables
array $errors = array() (line 80)

Contains upload errors

Contains upload errors

array $file_attributes = array() (line 45)

Contains all file attributes

Contains all file attributes

string $path = '' (line 87)

Contains upload path

Contains upload path

integer $size_bytes = 0 (line 73)

Image size in bytes

Image size in bytes

integer $size_x = 0 (line 59)

Image size in pixels

Image size in pixels

integer $size_y = 0 (line 66)

Image size in pixels

Image size in pixels

array $types = array() (line 52)

Expected mime types

Expected mime types

Methods
Constructor UploadFile (line 94)

Constructor

Constructor

UploadFile UploadFile (array $file_attributes, mixed $file_type)
  • array $file_attributes
check (line 148)

Checks the posted file

Checks the posted file

boolean check (array 0)
  • array 0
get_errors (line 117)

Gets all upload errors

Gets all upload errors

array get_errors ()
get_upload_path (line 127)

Gets upload path

Gets upload path

string get_upload_path ()
set_types (line 107)

Sets expected mime types

Sets expected mime types

void set_types (array $types)
  • array $types
set_upload_path (line 137)

Gets upload path

Gets upload path

string set_upload_path (mixed $path)
upload (line 168)

Uploads the file

Uploads the file

boolean upload ([mixed $mode = 1])

Documentation generated on Tue, 29 Jun 2004 14:42:15 +0200 by phpDocumentor 1.3.0RC3