phpBB API Documentation
Class

phpbb\files\types\base

abstract class base implements type_interface

Methods

filespec check_upload_size(filespec $file)

Check if upload exceeds maximum file size

type_interface set_upload(upload $upload)

Set upload instance Needs to be executed before every upload.

Details

at line 34
public filespec check_upload_size(filespec $file)

Check if upload exceeds maximum file size

Parameters

filespec $file Filespec object

Return Value

filespec Returns same filespec instance

at line 59
public type_interface set_upload(upload $upload)

Set upload instance Needs to be executed before every upload.

Parameters

upload $upload Upload instance

Return Value

type_interface Returns itself