ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilCountPDFPagesPreProcessors. More...
Public Member Functions | |||||||
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.
| |||||||
Data Fields | |
const | PAGE_COUNT = 'page_count' |
Class ilCountPDFPagesPreProcessors.
Definition at line 13 of file class.ilCountPDFPagesPreProcessors.php.
ilCountPDFPagesPreProcessors::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 21 of file class.ilCountPDFPagesPreProcessors.php.
References ILIAS\FileUpload\DTO\Metadata\additionalMetaData(), ilMimeTypeUtil\APPLICATION__PDF, ilUtil\execQuoted(), Psr\Http\Message\StreamInterface\getMetadata(), and ILIAS\FileUpload\DTO\Metadata\getMimeType().
const ilCountPDFPagesPreProcessors::PAGE_COUNT = 'page_count' |
Definition at line 15 of file class.ilCountPDFPagesPreProcessors.php.
Referenced by ilObjFile\raiseUploadError().