ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
FileUpload.php
Go to the documentation of this file.
1<?php
2
19namespace ILIAS\FileUpload;
20
24
37interface FileUpload
38{
55 public function moveFilesTo(string $destination, int $location = Location::STORAGE): void;
56
57
68 public function moveOneFileTo(
69 UploadResult $uploadResult,
70 string $destination,
72 string $file_name = '',
73 bool $override_existing = false
74 ): bool;
75
76
82 public function uploadSizeLimit(): int;
83
84
96 public function register(PreProcessor $preProcessor): void;
97
98
109 public function process(): void;
110
111
120 public function getResults(): array;
121
122
129 public function hasUploads(): bool;
130
137 public function hasBeenProcessed(): bool;
138}
$location
Definition: buildRTE.php:22
getResults()
Returns the results of the processing and moving operation of the uploaded files.
hasUploads()
Return (bool)true if one ore more file-uploads are in the current request, (bool)false if not.
moveOneFileTo(UploadResult $uploadResult, string $destination, int $location=Location::STORAGE, string $file_name='', bool $override_existing=false)
Moves a single File (the attributes, metadata and upload-status of which are contained in UploadResul...
process()
Invokes all preprocessors for each uploaded file in the sequence they got registered.
moveFilesTo(string $destination, int $location=Location::STORAGE)
Moves all uploaded files to the given destination after the processors had processed the files.
uploadSizeLimit()
Returns the current upload size limit in bytes.
hasBeenProcessed()
Return (bool)true if the current upload has already been processed.
const STORAGE
The filesystem outside of the ilias web root.
Definition: Location.php:43
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...