filespecResponsible for holding all file relevant information, as well as doing file-specific operations.
The fileupload class can be used to upload several files, each of them being this object to operate further on.
Located in /includes/functions_upload.php (line 24)
| Class | Description |
|---|---|
fileerror
|
Class for assigning error messages before a real filespec class can be assigned |
void
clean_filename
([real|unique|unique_ext $mode = 'unique'], [string $prefix = ''], [ $user_id = ''])
void
move_file
( $destination, [bool $overwrite = false], [ $skip_image_check = false], [octal $chmod = 0666], string $destination_path)
mixed
$destination_file
= '' (line 36)
mixed
$destination_path
= '' (line 37)
mixed
$error
= array() (line 43)
mixed
$extension
= '' (line 30)
mixed
$filename
= '' (line 26)
mixed
$filesize
= 0 (line 31)
mixed
$file_moved
= false (line 39)
mixed
$height
= 0 (line 33)
mixed
$image_info
= array() (line 34)
mixed
$init_error
= false (line 40)
mixed
$local
= false (line 41)
mixed
$mimetype
= '' (line 29)
mixed
$realname
= '' (line 27)
mixed
$upload
= '' (line 45)
mixed
$uploadname
= '' (line 28)
mixed
$width
= 0 (line 32)
Constructor filespec (line 51)
File Class
additional_checks (line 405)
Performing additional checks
check_content (line 236)
Check the first 256 bytes for forbidden content
clean_filename (line 92)
Cleans destination filename
get (line 137)
Get property from file object
get_extension (line 191)
Get file extension
get_filesize (line 227)
Get filesize
get_mimetype (line 206)
Get mimetype. Utilize mime_content_type if the function exist.
Not used at the moment...
is_image (line 152)
Check if file is an image (mimetype)
is_uploaded (line 162)
Check if the file got correctly uploaded
move_file (line 269)
Move file to destination folder The phpbb_root_path variable will be applied to the destination path
remove (line 180)
Remove file
Documentation generated on Sat, 05 Jul 2008 17:31:36 +0200 by phpDocumentor 1.4.2