upload
class upload
Attachment upload class
Properties
protected auth | $auth | ||
protected service | $cache | ||
protected config | $config | ||
protected upload | $files_upload | ||
protected language | $language | ||
protected dispatcher | $phpbb_dispatcher | ||
protected plupload | $plupload | ||
protected storage | $storage | ||
protected temp | $temp | ||
protected user | $user |
Methods
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
create_thumbnail()
Create thumbnail for file if necessary
init_files_upload(int $forum_id, bool $is_message)
Init files upload class
check_image(bool $is_image)
Check if uploaded file is really an image
bool
check_attach_quota()
Check if attachment quota was reached
bool
check_disk_space()
Check if there is enough free space available on disk
fill_file_data()
Fills file data with file information and current time as filetime
Details
at line 86
__construct(auth $auth, service $cache, config $config, upload $files_upload, language $language, dispatcher $phpbb_dispatcher, plupload $plupload, storage $storage, temp $temp, user $user)
Constructor for attachments upload class
at line 113
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 231
protected
create_thumbnail()
Create thumbnail for file if necessary
at line 264
protected
init_files_upload(int $forum_id, bool $is_message)
Init files upload class
at line 284
protected
check_image(bool $is_image)
Check if uploaded file is really an image
at line 307
protected bool
check_attach_quota()
Check if attachment quota was reached
at line 328
protected bool
check_disk_space()
Check if there is enough free space available on disk
at line 361
protected
fill_file_data()
Fills file data with file information and current time as filetime