class fileerror extends filespec
Class for assigning error messages before a real filespec class can be assigned
Properties
$filename | ||
$realname | ||
$uploadname | ||
$mimetype | ||
$extension | ||
$filesize | ||
$width | ||
$height | ||
$image_info | ||
$destination_file | ||
$destination_path | ||
$file_moved | ||
$init_error | ||
$local | ||
$error | ||
$upload |
Methods
filespec($upload_ary, $upload_namespace, guesser $mimetype_guesser = null, plupload $plupload = null)
File Class |
from filespec | |
clean_filename(real|unique|unique_ext $mode = 'unique', string $prefix = '', string $user_id = '')
Cleans destination filename |
from filespec | |
get($property)
Get property from file object |
from filespec | |
true |
is_image()
Check if file is an image (mimetype) |
from filespec |
true |
is_uploaded()
Check if the file got correctly uploaded |
from filespec |
remove()
Remove file |
from filespec | |
static string |
get_extension(string $filename)
Get file extension |
from filespec |
string |
get_mimetype(string $filename)
Get mimetype |
from filespec |
get_filesize($filename)
Get filesize |
from filespec | |
check_content($disallowed_content)
Check the first 256 bytes for forbidden content |
from filespec | |
move_file(string $destination, bool $overwrite = false, bool $skip_image_check = false, string $chmod = false)
Move file to destination folder The phpbbrootpath variable will be applied to the destination path |
from filespec | |
additional_checks()
Performing additional checks |
from filespec | |
fileerror($error_msg)
|
Details
in filespec at line 65
public
filespec($upload_ary, $upload_namespace, guesser $mimetype_guesser = null, plupload $plupload = null)
File Class
in filespec at line 110
public
clean_filename(real|unique|unique_ext $mode = 'unique', string $prefix = '', string $user_id = '')
Cleans destination filename
in filespec at line 155
public
get($property)
Get property from file object
in filespec at line 170
public true
is_image()
Check if file is an image (mimetype)
in filespec at line 180
public true
is_uploaded()
Check if the file got correctly uploaded
in filespec at line 200
public
remove()
Remove file
in filespec at line 214
static public string
get_extension(string $filename)
Get file extension
in filespec at line 233
public string
get_mimetype(string $filename)
Get mimetype
in filespec at line 251
public
get_filesize($filename)
Get filesize
in filespec at line 260
public
check_content($disallowed_content)
Check the first 256 bytes for forbidden content
in filespec at line 295
public
move_file(string $destination, bool $overwrite = false, bool $skip_image_check = false, string $chmod = false)
Move file to destination folder The phpbbrootpath variable will be applied to the destination path
in filespec at line 439
public
additional_checks()
Performing additional checks
at line 480
public
fileerror($error_msg)