From 07b9c47efee74b694d1d70b4cf3a47496eb52c8c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9gis=20Hanol?= <regis@hanol.fr>
Date: Fri, 26 Apr 2013 13:56:05 +0300
Subject: [PATCH] force the browse dialog to only accept images

on image upload
---
 .../discourse/templates/image_selector.js.handlebars            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/assets/javascripts/discourse/templates/image_selector.js.handlebars b/app/assets/javascripts/discourse/templates/image_selector.js.handlebars
index 51f7823e0..2b017bf7f 100644
--- a/app/assets/javascripts/discourse/templates/image_selector.js.handlebars
+++ b/app/assets/javascripts/discourse/templates/image_selector.js.handlebars
@@ -10,7 +10,7 @@
 {{#if view.localSelected}}
 <div class='modal-body'>
   <form>
-    <input type="file" name="file" id="filename-input" value="browse"><br>
+    <input type="file" name="file" id="filename-input" value="browse" accept="image/*"><br>
     <span class='description'>{{i18n image_selector.local_tip}}</span> <br>
   </form>
 </div>