diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-12-28 21:57:05 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-12-28 22:17:38 +0100 |
commit | a3206b4e975082216d143c79edf379703317da20 (patch) | |
tree | 6c769d1d3442752e66b4e68962fc85cc6628b0bf /apps/files/admin.php | |
parent | 7b72424a39688adbfd382f63899b200a3170884f (diff) | |
download | nextcloud-server-a3206b4e975082216d143c79edf379703317da20.tar.gz nextcloud-server-a3206b4e975082216d143c79edf379703317da20.zip |
only show the max possible upload of 2GB on a 32 bit system.
for a 64 bit system we have no such limitation
refs #856
Conflicts:
apps/files/templates/admin.php
Diffstat (limited to 'apps/files/admin.php')
-rw-r--r-- | apps/files/admin.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/admin.php b/apps/files/admin.php index 25645a4bcc9..f747f8645f6 100644 --- a/apps/files/admin.php +++ b/apps/files/admin.php @@ -57,6 +57,8 @@ $htaccessWritable=is_writable(OC::$SERVERROOT.'/.htaccess'); $tmpl = new OCP\Template( 'files', 'admin' ); $tmpl->assign( 'uploadChangable', $htaccessWorking and $htaccessWritable ); $tmpl->assign( 'uploadMaxFilesize', $maxUploadFilesize); +// max possible makes only sense on a 32 bit system +$tmpl->assign( 'displayMaxPossibleUploadSize', PHP_INT_SIZE===4); $tmpl->assign( 'maxPossibleUploadSize', OCP\Util::humanFileSize(PHP_INT_MAX)); $tmpl->assign( 'allowZipDownload', $allowZipDownload); $tmpl->assign( 'maxZipInputSize', $maxZipInputSize); |