diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-04-13 13:25:38 +0400 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-04-13 13:25:38 +0400 |
commit | b95f561bf29094421b827bb1fcae96122ebf8f4a (patch) | |
tree | 765b4cafca1a7c658ff6d6df6f8ca443a3760ce8 /files | |
parent | 1bd27891e2d0f62f4ab9588dec9ca12b79e50030 (diff) |
file settings: let people set no more than upper boundary for file uploads, but they should can really go up to the limit
Diffstat (limited to 'files')
-rw-r--r-- | files/admin.php | 1 | ||||
-rw-r--r-- | files/templates/admin.php | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/files/admin.php b/files/admin.php index 04ef6a4e828..4ae3ee51236 100644 --- a/files/admin.php +++ b/files/admin.php @@ -54,6 +54,7 @@ OC_App::setActiveNavigationEntry( "files_administration" ); $tmpl = new OC_Template( 'files', 'admin' ); $tmpl->assign( 'htaccessWorking', $htaccessWorking ); $tmpl->assign( 'uploadMaxFilesize', $maxUploadFilesize); +$tmpl->assign( 'maxPossibleUploadSize', OC_Helper::humanFileSize(PHP_INT_MAX)); $tmpl->assign( 'allowZipDownload', $allowZipDownload); $tmpl->assign( 'maxZipInputSize', $maxZipInputSize); return $tmpl->fetchPage();
\ No newline at end of file diff --git a/files/templates/admin.php b/files/templates/admin.php index 730f55f2768..9bcc40e9361 100644 --- a/files/templates/admin.php +++ b/files/templates/admin.php @@ -4,7 +4,7 @@ <fieldset class="personalblock"> <legend><strong><?php echo $l->t('File handling');?></strong></legend> <?php if($_['htaccessWorking']):?> - <label for="maxUploadSize"><?php echo $l->t( 'Maximum upload size' ); ?> </label><input name='maxUploadSize' id="maxUploadSize" value='<?php echo $_['uploadMaxFilesize'] ?>'/><br/> + <label for="maxUploadSize"><?php echo $l->t( 'Maximum upload size' ); ?> </label><input name='maxUploadSize' id="maxUploadSize" value='<?php echo $_['uploadMaxFilesize'] ?>'/>(<?php echo $l->t('max. possible: '); echo $_['maxPossibleUploadSize'] ?>)<br/> <?php endif;?> <input type="checkbox" name="allowZipDownload" id="allowZipDownload" value="1" title="<?php echo $l->t( 'Needed for multi-file and folder downloads.' ); ?>"<?php if ($_['allowZipDownload']) echo ' checked="checked"'; ?> /> <label for="allowZipDownload"><?php echo $l->t( 'Enable ZIP-download' ); ?></label> <br/> <fieldset class="personalblock"> |