3 namespace wcf\system\file\processor
;
5 use wcf\data\file\File
;
8 * @author Alexander Ebert
9 * @copyright 2001-2024 WoltLab GmbH
10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
13 interface IFileProcessor
15 public function acceptUpload(string $filename, int $fileSize, array $context): FileProcessorPreflightResult
;
17 public function adopt(File
$file, array $context): void
;
19 public function canDownload(File
$file): bool;
21 public function getAllowedFileExtensions(array $context): array;
23 public function getTypeName(): string;
25 public function getUploadResponse(File
$file): array;
28 * @return ThumbnailFormat[]
30 public function getThumbnailFormats(): array;