ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
FilenameSanitizerPreProcessor.php
Go to the documentation of this file.
1<?php
2
4
8use League\Flysystem\Util;
9
20{
21
25 public function process(FileStream $stream, Metadata $metadata)
26 {
27 $metadata->setFilename(Util::normalizeRelativePath($metadata->getFilename()));
28
29 return new ProcessingStatus(ProcessingStatus::OK, 'Filename changed');
30 }
31}
An exception for terminatinating execution or to throw for unit testing.
getFilename()
The filename supplied by the browser.
Definition: Metadata.php:73
setFilename($filename)
Overwrite the current filename.
Definition: Metadata.php:87
process(FileStream $stream, Metadata $metadata)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...