ILIAS  release_8 Revision v8.24
class.ilFileServicesPreProcessor.php
Go to the documentation of this file.
1<?php
2
26
33{
35
36 public function __construct(
38 string $reason = 'Extension is blacklisted.'
39 ) {
40 $this->settings = $settings;
42 }
43
44 public function process(FileStream $stream, Metadata $metadata): ProcessingStatus
45 {
46 if ($this->settings->isByPassAllowedForCurrentUser()) {
47 return new ProcessingStatus(ProcessingStatus::OK, 'Blacklist override by RBAC');
48 }
49 return parent::process($stream, $metadata);
50 }
51}
__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 processo...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc