1
0
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:
Thomas Tanghus 2013-03-14 19:02:00 +01:00
parent bfb3a4e07d
commit 70bc6cb8ea

View File

@ -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);