ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
FilenameSanitizerPreProcessor.php
Go to the documentation of this file.
1
<?php
2
3
namespace
ILIAS\FileUpload\Processor
;
4
5
use
ILIAS\Filesystem\Stream\FileStream
;
6
use
ILIAS\FileUpload\DTO\Metadata
;
7
use
ILIAS\FileUpload\DTO\ProcessingStatus
;
8
use
League\Flysystem\Util
;
9
19
final
class
FilenameSanitizerPreProcessor
implements
PreProcessor
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
}
ILIAS\FileUpload\Processor\PreProcessor
Class PreProcessor.
Definition:
PreProcessor.php:22
ILIAS\FileUpload\DTO\ProcessingStatus
Class ProcessingStatus.
Definition:
ProcessingStatus.php:20
Util
ProcessingStatus
ILIAS\FileUpload\DTO\Metadata\getFilename
getFilename()
The filename supplied by the browser.
Definition:
Metadata.php:73
ILIAS\FileUpload\Processor
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
AbstractRecursiveZipPreProcessor.php:19
ILIAS\FileUpload\DTO\Metadata
Class Metadata.
Definition:
Metadata.php:21
Metadata
ILIAS\FileUpload\Processor\FilenameSanitizerPreProcessor
Class FilenameSanitizerPreProcessor.
Definition:
FilenameSanitizerPreProcessor.php:19
ILIAS\FileUpload\Processor\FilenameSanitizerPreProcessor\process
process(FileStream $stream, Metadata $metadata)
Definition:
FilenameSanitizerPreProcessor.php:25
FileStream
ILIAS\FileUpload\DTO\Metadata\setFilename
setFilename($filename)
Overwrite the current filename.
Definition:
Metadata.php:87
ILIAS\Filesystem\Stream\FileStream
Interface FileStream.
Definition:
FileStream.php:20
ILIAS\FileUpload\DTO\ProcessingStatus\OK
const OK
Upload is ok.
Definition:
ProcessingStatus.php:26
src
FileUpload
Processor
FilenameSanitizerPreProcessor.php
Generated on Thu Apr 24 2025 20:01:44 for ILIAS by
1.8.13 (using
Doxyfile
)