From c38fbd27e43401fb865d6986b8768c0dce3b74c3 Mon Sep 17 00:00:00 2001 From: maxwell <maxwell@joindiaspora.com> Date: Tue, 14 Dec 2010 13:30:04 -0800 Subject: [PATCH] prevent gifs thru getting through javascript uploader --- app/views/photos/_new_photo.haml | 2 +- app/views/photos/_new_profile_photo.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/photos/_new_photo.haml b/app/views/photos/_new_photo.haml index 2276cf02ac..202e05b06f 100644 --- a/app/views/photos/_new_photo.haml +++ b/app/views/photos/_new_photo.haml @@ -7,7 +7,7 @@ var uploader = new qq.FileUploaderBasic({ element: document.getElementById('file-upload'), params: {'photo' : {'pending' : 'true', 'aspect_ids' : "#{aspect_id}"}, 'set_profile_image' : "#{set_profile_image if defined?(set_profile_image)}"}, - allowedExtensions: ['jpg', 'jpeg', 'png', 'gif'], + allowedExtensions: ['jpg', 'jpeg', 'png'], action: "#{photos_path}", debug: true, button: document.getElementById('file-upload'), diff --git a/app/views/photos/_new_profile_photo.haml b/app/views/photos/_new_profile_photo.haml index 241d425f38..60ea01ec6e 100644 --- a/app/views/photos/_new_profile_photo.haml +++ b/app/views/photos/_new_profile_photo.haml @@ -22,7 +22,7 @@ var uploader = new qq.FileUploaderBasic({ element: document.getElementById('file-upload'), params: {'photo' : {'pending' : true, 'aspect_ids' : "all"}}, - allowedExtensions: ['jpg', 'jpeg', 'png', 'gif'], + allowedExtensions: ['jpg', 'jpeg', 'png'], action: "#{photos_path}", debug: true, button: document.getElementById('file-upload'), -- GitLab