prevent gifs thru getting through javascript uploader
This commit is contained in:
parent
d3850292d5
commit
c38fbd27e4
2 changed files with 2 additions and 2 deletions
|
|
@ -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'),
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue