ILIAS
release_8 Revision v8.23
|
Class ilFileServicesPolicy. More...
Public Member Functions | |
__construct (ilFileServicesSettings $settings, string $reason='Extension is blacklisted.') | |
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... | |
![]() | |
__construct (array $blacklist, string $reason='Extension is blacklisted.') | |
BlacklistExtensionPreProcessor constructor. 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... | |
Private Attributes | |
ilFileServicesSettings | $settings |
Additional Inherited Members | |
![]() | |
checkPath (string $path) | |
getRejectionMessage () | |
getOKMessage () | |
![]() | |
checkPath (string $path) | |
getRejectionMessage () | |
getOKMessage () | |
Class ilFileServicesPolicy.
Definition at line 32 of file class.ilFileServicesPreProcessor.php.
ilFileServicesPreProcessor::__construct | ( | ilFileServicesSettings | $settings, |
string | $reason = 'Extension is blacklisted.' |
||
) |
Definition at line 36 of file class.ilFileServicesPreProcessor.php.
References ILIAS\FileUpload\Processor\BlacklistExtensionPreProcessor\$reason, $settings, ILIAS\GlobalScreen\Provider\__construct(), ilFileServicesSettings\getBlackListedSuffixes(), and ILIAS\Repository\settings().
ilFileServicesPreProcessor::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 44 of file class.ilFileServicesPreProcessor.php.
References ILIAS\Repository\settings().
|
private |
Definition at line 34 of file class.ilFileServicesPreProcessor.php.
Referenced by __construct().