From 00c6d97749118d5753506a49c75c97175d6bdf79 Mon Sep 17 00:00:00 2001 From: jame Date: Wed, 15 Jul 2015 03:16:30 -0500 Subject: [PATCH] adds filetype filter to ember-filepicker instance #49 --- .../app/pods/admin/artist/images/new/template.hbs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/client/app/pods/admin/artist/images/new/template.hbs b/client/app/pods/admin/artist/images/new/template.hbs index 3b4040f..ed92073 100644 --- a/client/app/pods/admin/artist/images/new/template.hbs +++ b/client/app/pods/admin/artist/images/new/template.hbs @@ -20,14 +20,22 @@

{{controller.model.url}}

{{/if}} -
+
{{#unless controller.model.url}}
{{!-- {{image-upload-button action='queueImage'}} --}} {{#if showFilePicker}} - {{ember-filepicker pickerOptions=pickerOptions multiple=true onSelection='fileSelected' onClose='onClose' onError='onError'}} + {{ember-filepicker + pickerOptions=pickerOptions + multiple=true + onSelection='fileSelected' + onClose='onClose' + onError='onError' + accept=".jpg,.jpeg,.gif,.png" + readAs="readAsDataURL" + }} {{/if}} - +
{{/unless}}