ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Public Member Functions | |
__construct (private readonly Closure $fill) | |
process (FileStream $stream, Metadata $metadata) | |
This method gets invoked by the file upload service to process the file with the help of the processor. More... | |
process (FileStream $stream, Metadata $metadata) | |
This method gets invoked by the file upload service to process the file with the help of the processor. More... | |
Definition at line 29 of file PreProcessor.php.
ILIAS\LegalDocuments\FileUpload\PreProcessor::__construct | ( | private readonly Closure | $fill | ) |
ILIAS\LegalDocuments\FileUpload\PreProcessor::process | ( | FileStream | $stream, |
Metadata | $metadata | ||
) |
This method gets invoked by the file upload service to process the file with the help of the processor.
If the return value is REJECTED, no further invocations of processors are done for the rejected file.
If the processor fails or returns an unexpected value, the file gets automatically rejected because the file could be dangerous to ILIAS.
FileStream | $stream | The stream of the file. |
Metadata | $metadata | The meta data of the uploaded file. |
Implements ILIAS\FileUpload\Processor\PreProcessor.
Definition at line 38 of file PreProcessor.php.
References ILIAS\FileUpload\DTO\ProcessingStatus\OK.
Referenced by ILIAS\LegalDocuments\test\FileUpload\PreProcessorTest\testProcess().