summaryrefslogtreecommitdiffstats
path: root/settings/templates/personal.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-08-26 17:08:25 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-10-09 11:19:05 +0200
commitc7aef6c36833b1d9bdec9dc30ceb874b8cb93019 (patch)
treee037f244957f18d0182c71532e6d2f7db5158a8f /settings/templates/personal.php
parent5cb83937faf7a6cf72c932346fcf62073d4b405b (diff)
downloadnextcloud-server-c7aef6c36833b1d9bdec9dc30ceb874b8cb93019.tar.gz
nextcloud-server-c7aef6c36833b1d9bdec9dc30ceb874b8cb93019.zip
Fix uploading avatar and root certs in IE8
Diffstat (limited to 'settings/templates/personal.php')
-rw-r--r--settings/templates/personal.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/settings/templates/personal.php b/settings/templates/personal.php
index c0adaf9c5a3..0eba71d77d1 100644
--- a/settings/templates/personal.php
+++ b/settings/templates/personal.php
@@ -155,10 +155,11 @@ if($_['passwordChangeSupported']) {
<div class="avatardiv"></div><br>
<div class="warning hidden"></div>
<?php if ($_['avatarChangeSupported']): ?>
- <div class="inlineblock button" id="uploadavatarbutton"><?php p($l->t('Upload new')); ?></div>
- <input type="file" class="hidden" name="files[]" id="uploadavatar">
+ <label for="uploadavatar" class="inlineblock button" id="uploadavatarbutton"><?php p($l->t('Upload new')); ?></label>
<div class="inlineblock button" id="selectavatar"><?php p($l->t('Select new from Files')); ?></div>
- <div class="inlineblock button" id="removeavatar"><?php p($l->t('Remove image')); ?></div><br>
+ <div class="inlineblock button" id="removeavatar"><?php p($l->t('Remove image')); ?></div>
+ <input type="file" name="files[]" id="uploadavatar" class="hiddenuploadfield">
+ <br>
<?php p($l->t('Either png or jpg. Ideally square but you will be able to crop it. The file is not allowed to exceed the maximum size of 20 MB.')); ?>
<?php else: ?>
<?php p($l->t('Your avatar is provided by your original account.')); ?>
@@ -239,8 +240,8 @@ if($_['passwordChangeSupported']) {
</tbody>
</table>
<form class="uploadButton" method="post" action="<?php p($_['urlGenerator']->linkToRoute('settings.Certificate.addPersonalRootCertificate')); ?>" target="certUploadFrame">
- <input type="file" id="rootcert_import" name="rootcert_import" class="hidden">
- <input type="button" id="rootcert_import_button" value="<?php p($l->t('Import root certificate')); ?>"/>
+ <label for="rootcert_import" class="inlineblock button" id="rootcert_import_button"><?php p($l->t('Import root certificate')); ?></label>
+ <input type="file" id="rootcert_import" name="rootcert_import" class="hiddenuploadfield">
</form>
</div>
<?php endif; ?>