ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
FileServicesLegacyInitialisationAdapter.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
30{
31 public function getPhpUploadLimitInBytes(): int
32 {
34 }
35
36 public function getGlobalUploadLimitInBytes(): ?int
37 {
38 global $DIC;
39 if ($DIC->offsetExists('upload_policy_resolver')) {
41 return $DIC['upload_policy_resolver']->getUserUploadSizeLimitInBytes();
42 }
43 return null;
44 }
45}
getPhpUploadLimitInBytes()
Returns the smaller php-ini option of 'post_max_size' and 'upload_max_filesize' in bytes.
static getPhpUploadSizeLimitInBytes()
getGlobalUploadLimitInBytes()
Returns a global upload limit in bytes, may exceed the.
global $DIC
Definition: shib_login.php:26