summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2017-10-26 13:46:22 +0200
committerGitHub <noreply@github.com>2017-10-26 13:46:22 +0200
commit6dabbc756b9e2aef4ff2ff63fff5679da96c7728 (patch)
treede6e7d0da7d4fe9eaded08aa21882928e34d842e /templates
parentedbed42f0029de3c1e67315769c44721b953cf3b (diff)
parent1de8cdb30ec67689712a2cd8ab4392b96b70a7b3 (diff)
Merge pull request #407 from nextcloud/image-file-extensions
Only accept image files for contact photos
Diffstat (limited to 'templates')
-rw-r--r--templates/avatar.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/avatar.html b/templates/avatar.html
index b49601a1..c09024ca 100644
--- a/templates/avatar.html
+++ b/templates/avatar.html
@@ -1,7 +1,7 @@
<div ng-if="ctrl.contact.failedProps.indexOf('photo') !== -1" class="icon-error"></div>
<img ng-show="contact.photo()!==undefined" class="contactdetails__logo avatar" id="contact-avatar" data-ng-src="{{contact.photo()}}" ng-click="ctrl.openPhoto()" />
<div class="avatar-options">
- <input type="file" id="avatar-upload" class="hidden"/>
+ <input type="file" id="avatar-upload" class="hidden" accept="image/*" />
<label for="avatar-upload" class="icon-upload-white"></label>
<div class="icon-delete-white" ng-show="contact.photo()!==undefined" ng-click="ctrl.removePhoto()"></div>
<div class="icon-fullscreen-white" ng-show="contact.photo()!==undefined" ng-click="ctrl.openPhoto()"></div>