38 abstract protected function checkPath(
string $path) : bool;
48 $zip_file_path = $stream->getMetadata(
'uri');
49 $zip = new \ZipArchive();
50 $zip->open($zip_file_path);
52 for (
$i = 0;
$i < $zip->numFiles;
$i++) {
53 $original_path = $zip->getNameIndex(
$i);
74 if ((substr_compare($metadata->
getFilename(),
'zip', -strlen(
'zip')) === 0) ===
true) {
79 if ($mime_type ===
'application/zip' 80 || $mime_type ===
'application/x-zip-compressed' isFileAZip(Metadata $metadata)
Class InsecureFilenameSanitizerPreProcessor.
const REJECTED
Upload got rejected by a processor.
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...