frontend display upload restrictions

This commit is contained in:
2021-03-30 23:12:10 +02:00
parent c847650b1f
commit fb91b9e879
6 changed files with 36 additions and 15 deletions

View File

@@ -237,7 +237,7 @@ namespace Api\File {
"maxFiles" => ($maxFiles <= 0 ? $this->getMaxFiles() : min($this->getMaxFiles(), $maxFiles)),
"maxSize" => ($maxSize <= 0 ? $this->getMaxFileSizePHP() : min($this->getMaxFileSizePHP(), $maxSize)),
"extensions" => $row["extensions"] ?? "",
"parentId" => $row["parentId"] ?? 0
// "parentId" => $row["parentId"] ?? 0 // not sure, why we need to tell the parentId?
);
}
}
@@ -261,7 +261,8 @@ namespace Api\File {
$this->result["restrictions"] = array(
"maxFiles" => $this->getMaxFiles(),
"maxSize" => $this->getMaxFileSizePHP()
"maxSize" => $this->getMaxFileSizePHP(),
"extensions" => ""
);
return true;