Class UploadFile

Description

Upload class - wrapper for uploading files.

  • version: $Id: class.UploadFile.inc,v 1.4 2002/12/03 13:16:57 letreo Exp $
  • access: public
  • author: Michael Oertel <michael@ortelius.de>

Located in Program_Root/include/class.UploadFile.inc (line 36)


	
			
Variable Summary
array $errors
string $path
integer $size_bytes
integer $size_x
integer $size_y
array $types
Method Summary
void UploadFile (array $file_attributes)
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 78)

Contains upload errors

array $file_attributes = array() (line 43)

Contains all file attributes

string $path (line 85)

Contains upload path

integer $size_bytes = PRIVATE_IMG_MAX_BYTES (line 71)

Image size in bytes

integer $size_x = PRIVATE_IMG_SIZE_X (line 57)

Image size in pixels

integer $size_y = PRIVATE_IMG_SIZE_Y (line 64)

Image size in pixels

array $types = array() (line 50)

Expected mime types

Methods
Constructor UploadFile (line 92)

Constructor

void UploadFile (array $file_attributes)
  • array $file_attributes
check (line 143)

Checks the posted file

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

Gets all upload errors

array get_errors ()
get_upload_path (line 122)

Gets upload path

string get_upload_path ()
set_types (line 102)

Sets expected mime types

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

Gets upload path

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

Uploads the file

boolean upload ([mixed $mode = 1])

Documention generated on Fri, 2 May 2003 10:50:48 +0200 by phpDocumentor 1.2.0rc2