accept only images

This commit is contained in:
daniel-j 2016-08-23 16:39:35 +02:00
parent 9d16fef12c
commit 3e4d08f646

View file

@ -126,7 +126,7 @@ let dialog = {
// m('input', {type: 'url', placeholder: 'Image URL'}),
// '- or -',
m('form', [
m('input', {type: 'file', onchange: ctrl.setCoverFile}),
m('input', {type: 'file', accept: 'image/*', onchange: ctrl.setCoverFile}),
m('button', {type: 'reset'}, 'Reset')
])
))