4 include_once(
"./Services/Preview/classes/class.ilPreviewRenderer.php");
40 require_once(
"./Modules/File/classes/class.ilObjFile.php");
41 include_once
'./Modules/File/classes/class.ilObjFileAccess.php';
43 if (isset($_FILES[
'file'][
'name'])) {
45 } elseif (isset($_FILES[
'upload_files'][
'name'])) {
46 $filename = $_FILES[
'upload_files'][
'name'];
66 $pos = strrpos($filepath,
"/");
67 $name = $pos !==
false ? substr($filepath, $pos + 1) : $filepath;
prepareFileForExec($filepath)
Checks whether the specified file path can be used with exec() commands.
Abstract parent class for all file preview renderer classes.
static _getFileExtension($a_file_name)
Gets the file extension of the specified file name.
Abstract parent class for all preview renderer classes.
getSupportedFileFormats()
Gets an array containing the file formats that are supported by the renderer.
static _lookupFileName($a_id)
supports($preview)
Determines whether the specified preview object is supported by the renderer.
getSupportedRepositoryTypes()
Gets an array containing the repository types (e.g.