summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-08-11 21:00:18 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-08-11 21:00:18 +0200
commit0bcb4a6a8f507e249045154da02372a313a921dc (patch)
treefd307cd79edf813ca3f347046aea02451ff2acdf /files
parentdfb923f34e71075ad06588ae4fabb3c51366e469 (diff)
downloadnextcloud-server-0bcb4a6a8f507e249045154da02372a313a921dc.tar.gz
nextcloud-server-0bcb4a6a8f507e249045154da02372a313a921dc.zip
set default max upload size in the .htaccess file to something rediculous
and don't show the max filesize message when the limit is over 10GB
Diffstat (limited to 'files')
-rw-r--r--files/templates/index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/files/templates/index.php b/files/templates/index.php
index 083322174e7..407cfa78c2f 100644
--- a/files/templates/index.php
+++ b/files/templates/index.php
@@ -6,7 +6,8 @@
<input type="hidden" class="max_human_file_size" value="(max <?php echo $_['uploadMaxHumanFilesize']; ?>)">
<input type="hidden" name="dir" value="<?php echo $_['dir'] ?>" id="dir">
<div class="file_upload_wrapper" class="svg">
- <input type="submit" class="file_upload_filename" value="<?php echo $l->t('Upload');?> (max. <?php echo $_['uploadMaxHumanFilesize'];?>)"/>
+ <input type="submit" class="file_upload_filename" value="<?php echo $l->t('Upload');
+ if($_['uploadMaxFilesize']<(10000000000)){echo ' (max. '.$_['uploadMaxHumanFilesize'].')';}?>"/>
<input class="file_upload_start" type="file" name='files[]'/>
</div>
<iframe name="file_upload_target_1" class='file_upload_target' src=""></iframe>