diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-03-15 16:40:36 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-03-15 16:40:36 +0100 |
commit | 319e3f162cab32a2bf373b79d401569ca595f168 (patch) | |
tree | b69982a7b083756c68bb2c3e0f10b8afebe1d245 /apps/files | |
parent | 32b8fd8fb7a0deb1461820e6dcfdb6a0114ff980 (diff) | |
download | nextcloud-server-319e3f162cab32a2bf373b79d401569ca595f168.tar.gz nextcloud-server-319e3f162cab32a2bf373b79d401569ca595f168.zip |
Don't block uploads if the max upload size is unknown
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/templates/index.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php index a53df4e2d3e..0d7185bcb78 100644 --- a/apps/files/templates/index.php +++ b/apps/files/templates/index.php @@ -23,8 +23,10 @@ method="post" enctype="multipart/form-data" target="file_upload_target_1"> + <?php if($_['uploadMaxFilesize'] >= 0):?> <input type="hidden" name="MAX_FILE_SIZE" id="max_upload" value="<?php p($_['uploadMaxFilesize']) ?>"> + <?php endif;?> <!-- Send the requesttoken, this is needed for older IE versions because they don't send the CSRF token via HTTP header in this case --> <input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>" id="requesttoken"> |