diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-03-15 16:31:35 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-03-15 16:31:35 +0100 |
commit | 32b8fd8fb7a0deb1461820e6dcfdb6a0114ff980 (patch) | |
tree | 4d73ccba45c61d6c09f0b7e2bb7717a8019390f8 /apps/files/ajax | |
parent | 761540e78b5e7ffc6cf717c71adcd8378b8f13a8 (diff) | |
download | nextcloud-server-32b8fd8fb7a0deb1461820e6dcfdb6a0114ff980.tar.gz nextcloud-server-32b8fd8fb7a0deb1461820e6dcfdb6a0114ff980.zip |
Improve handeling of unlimited max upload size
Diffstat (limited to 'apps/files/ajax')
-rw-r--r-- | apps/files/ajax/upload.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php index 5b697777e47..b9eea2fea62 100644 --- a/apps/files/ajax/upload.php +++ b/apps/files/ajax/upload.php @@ -47,7 +47,7 @@ $totalSize = 0; foreach ($files['size'] as $size) { $totalSize += $size; } -if ($totalSize > $maxUploadFilesize) { +if ($maxUploadFilesize >= 0 and $totalSize > $maxUploadFilesize) { OCP\JSON::error(array('data' => array('message' => $l->t('Not enough storage available'), 'uploadMaxFilesize' => $maxUploadFilesize, 'maxHumanFilesize' => $maxHumanFilesize))); |