Elgg  Version 3.0
UploadService.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg;
4 
7 
17 
21  private $request;
22 
28  public function __construct(HttpRequest $request) {
29  $this->request = $request;
30  }
31 
39  public function getFiles($input_name) {
40  return $this->request->getFiles($input_name);
41  }
42 
51  public function getFile($input_name, $check_for_validity = true) {
52  return $this->request->getFile($input_name, $check_for_validity);
53  }
54 }
getFiles($input_name)
Returns an array of uploaded file objects regardless of upload status/errors.
$request
Page handler for autocomplete endpoint.
Definition: livesearch.php:9
__construct(HttpRequest $request)
Constructor.
Configuration exception.
if(!$entity instanceof ElggEntity) $input_name
Definition: default.php:14
getFile($input_name, $check_for_validity=true)
Returns an single valid uploaded file object.
WARNING: API IN FLUX.