mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-19 08:52:22 +01:00
Contacts: Use OCP\Util::maxUploadFilesize('/'). Fixes #756
This commit is contained in:
parent
bfb3a4e07d
commit
70bc6cb8ea
@ -29,9 +29,7 @@ foreach($ims as $name => $values) {
|
||||
}
|
||||
$categories = OCA\Contacts\App::getCategories();
|
||||
|
||||
$upload_max_filesize = OCP\Util::computerFileSize(ini_get('upload_max_filesize'));
|
||||
$post_max_size = OCP\Util::computerFileSize(ini_get('post_max_size'));
|
||||
$maxUploadFilesize = min($upload_max_filesize, $post_max_size);
|
||||
$maxUploadFilesize = OCP\Util::maxUploadFilesize('/');
|
||||
|
||||
$freeSpace=\OC\Files\Filesystem::free_space('/');
|
||||
$freeSpace=max($freeSpace, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user