Browse Source

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
remotes/origin/stable
Robin Appelman 14 years ago
parent
commit
0bcb4a6a8f
  1. 6
      .htaccess
  2. 3
      files/templates/index.php

6
.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

3
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>

Loading…
Cancel
Save