Elgg
Version master
|
File upload handling service. More...
Public Member Functions | |
__construct (protected HttpRequest $request) | |
Constructor. More... | |
getFiles (string $input_name) | |
Returns an array of uploaded file objects regardless of upload status/errors. More... | |
getFile (string $input_name, bool $check_for_validity=true) | |
Returns an single valid uploaded file object. More... | |
File upload handling service.
Definition at line 14 of file UploadService.php.
Elgg\UploadService::__construct | ( | protected HttpRequest | $request | ) |
Constructor.
\Elgg\Http\Request | $request | Http request |
Definition at line 21 of file UploadService.php.
Elgg\UploadService::getFile | ( | string | $input_name, |
bool | $check_for_validity = true |
||
) |
Returns an single valid uploaded file object.
string | $input_name | Form input name |
bool | $check_for_validity | If there is an uploaded file, is it required to be valid |
Definition at line 43 of file UploadService.php.
Elgg\UploadService::getFiles | ( | string | $input_name | ) |
Returns an array of uploaded file objects regardless of upload status/errors.
string | $input_name | Form input name |
Definition at line 31 of file UploadService.php.