ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
FilenameSanitizerPreProcessor.php
Go to the documentation of this file.
1 <?php
2 
4 
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 }
getFilename()
The filename supplied by the browser.
Definition: Metadata.php:73
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setFilename($filename)
Overwrite the current filename.
Definition: Metadata.php:87
Interface FileStream.
Definition: FileStream.php:20