19 declare(strict_types=1);
    37         string $a_postvar = 
""    41         $this->
lng = $DIC->language();
    42         $this->
lng->loadLanguageModule(
"form");
    43         $this->tpl = $DIC[
"tpl"];
    49         $this->imagepath_web = $a_path;
    59         $this->filenames = $a_filenames;
    69         $this->allowMove = $a_allow_move;
    91         if (is_array($pictures)) {
    92             foreach ($pictures[
'name'] as $index => $name) {
    94                 $name = rtrim($name, 
'/');
    97                 $filename_arr = pathinfo($name);
    98                 $suffix = $filename_arr[
"extension"] ?? 
"";
    99                 $temp_name = $pictures[
"tmp_name"][$index];
   100                 $error = $pictures[
"error"][$index];
   102                 $_FILES[$this->
getPostVar()][
"name"][$index] = Util::sanitizeFileName($_FILES[$this->
getPostVar()][
"name"][$index]);
   108                         case UPLOAD_ERR_FORM_SIZE:
   109                         case UPLOAD_ERR_INI_SIZE:
   111                             $uploadcheck = 
false;
   114                         case UPLOAD_ERR_PARTIAL:
   116                             $uploadcheck = 
false;
   119                         case UPLOAD_ERR_NO_FILE:
   124                                     $uploadcheck = 
false;
   129                         case UPLOAD_ERR_NO_TMP_DIR:
   131                             $uploadcheck = 
false;
   134                         case UPLOAD_ERR_CANT_WRITE:
   136                             $uploadcheck = 
false;
   139                         case UPLOAD_ERR_EXTENSION:
   141                             $uploadcheck = 
false;
   147                 if ($pictures[
"tmp_name"][$index] != 
"" && is_array($this->
getSuffixes()) && count($this->
getSuffixes()) > 0) {
   148                     if (!in_array(strtolower($suffix), $this->
getSuffixes())) {
   150                         $uploadcheck = 
false;
   155                 if ($pictures[
"tmp_name"][$index] != 
"") {
   157                     if ($vir[0] == 
false) {
   158                         $this->
setAlert(
$lng->
txt(
"form_msg_file_virus_found") . 
"<br />" . $vir[1]);
   159                         $uploadcheck = 
false;
   176         $tpl = 
new ilTemplate(
"tpl.prop_filewizardinput.html", 
true, 
true, 
"Services/Form");
   179         foreach ($this->filenames as 
$value) {
   180             if (strlen($value)) {
   215                     " disabled=\"disabled\""   234         $main_tpl->addJavascript(
"./Services/Form/js/ServiceFormWizardInput.js");
   235         $main_tpl->addJavascript(
"./Services/Form/templates/default/filewizard.js");
 parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
static get(string $a_glyph, string $a_text="")
 
static virusHandling(string $a_file, string $a_orig_name='', bool $a_clean=true)
 
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string. 
 
setVariable(string $variable, $value='')
Sets the given variable to the given value. 
 
setVariable($variable, $value='')
Sets a variable value. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block. 
 
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block.