54 if (isset($_FILES[
'file'][
'name'])) {
56 } elseif (isset($_FILES[
'upload_files'][
'name'])) {
57 $filename = $_FILES[
'upload_files'][
'name'];
70 }
catch (Exception
$e) {
74 if (empty($obj->getResourceId())) {
78 return in_array($obj->getFileExtension(), $this->getSupportedFileFormats(),
true);
93 $pos = strrpos($filepath,
"/");
94 $name = $pos !==
false ? substr($filepath, $pos + 1) : $filepath;
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getSupportedRepositoryTypes()
Gets an array containing the repository types (e.g.
supports(\ilPreview $preview)
Determines whether the specified preview object is supported by the renderer.
getSupportedFileFormats()
Gets an array containing the file formats that are supported by the renderer.
prepareFileForExec(string $filepath)
Checks whether the specified file path can be used with exec() commands.
static getValidFilename(string $a_filename)
static _getFileExtension(string $a_file_name)
Gets the file extension of the specified file name.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...