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
This commit is contained in:
Robin Appelman 2011-08-11 21:00:18 +02:00
parent dfb923f34e
commit 0bcb4a6a8f
2 changed files with 5 additions and 4 deletions

View File

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

View File

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