ILIAS  release_8 Revision v8.24
FileUpload.php
Go to the documentation of this file.
1<?php
2
3namespace ILIAS\FileUpload;
4
8
9/******************************************************************************
10 *
11 * This file is part of ILIAS, a powerful learning management system.
12 *
13 * ILIAS is licensed with the GPL-3.0, you should have received a copy
14 * of said license along with the source code.
15 *
16 * If this is not the case or you just want to try ILIAS, you'll find
17 * us at:
18 * https://www.ilias.de
19 * https://github.com/ILIAS-eLearning
20 *
21 *****************************************************************************/
34interface FileUpload
35{
52 public function moveFilesTo(string $destination, int $location = Location::STORAGE): void;
53
54
65 public function moveOneFileTo(
66 UploadResult $uploadResult,
67 string $destination,
69 string $file_name = '',
70 bool $override_existing = false
71 ): bool;
72
73
79 public function uploadSizeLimit(): int;
80
81
93 public function register(PreProcessor $preProcessor): void;
94
95
106 public function process(): void;
107
108
117 public function getResults(): array;
118
119
126 public function hasUploads(): bool;
127
134 public function hasBeenProcessed(): bool;
135}
$location
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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:40
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...