aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--.htaccess6
-rw-r--r--files/templates/index.php3
2 files changed, 5 insertions, 4 deletions
diff --git a/.htaccess b/.htaccess
index c818c9ca2ea..23c90b26d8c 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1,5 +1,5 @@
-ErrorDocument 404 //core/templates/404.php
-php_value upload_max_filesize 20M
-php_value post_max_size 20M
+ErrorDocument 404 //owncloud/core/templates/404.php
+php_value upload_max_filesize 2048G
+php_value post_max_size 2048G
SetEnv htaccessWorking true
Options -Indexes
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>