upload
class upload
Attachment upload class
Properties
protected auth | $auth | ||
protected service | $cache | ||
protected config | $config | ||
protected upload | $files_upload | ||
protected language | $language | ||
protected guesser | $mimetype_guesser | ||
protected dispatcher | $phpbb_dispatcher | ||
protected string | $phpbb_root_path | ||
protected plupload | $plupload | ||
protected user | $user |
Methods
Constructor for attachments upload class
Upload Attachment - filedata is generated here Uses upload class
Create thumbnail for file if necessary
Init files upload class
Check if uploaded file is really an image
Check if attachment quota was reached
Check if there is enough free space available on disk
Fills file data with file information and current time as filetime
Details
at line 85
__construct(auth $auth, service $cache, config $config, upload $files_upload, language $language, guesser $mimetype_guesser, dispatcher $phpbb_dispatcher, plupload $plupload, user $user, $phpbb_root_path)
Constructor for attachments upload class
at line 112
array
upload(string $form_name, int $forum_id, bool $local = false, string $local_storage = '', bool $is_message = false, array $local_filedata = array())
Upload Attachment - filedata is generated here Uses upload class
at line 214
protected array
create_thumbnail()
Create thumbnail for file if necessary
at line 234
protected
init_files_upload(int $forum_id, bool $is_message)
Init files upload class
at line 254
protected
check_image(bool $is_image)
Check if uploaded file is really an image
at line 277
protected bool
check_attach_quota()
Check if attachment quota was reached
at line 300
protected bool
check_disk_space()
Check if there is enough free space available on disk
at line 330
protected
fill_file_data()
Fills file data with file information and current time as filetime