0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-18 02:32:13 -05:00

Use html5 accept attribute for filter image types on upload forms.

This commit is contained in:
Andrey Antukh 2016-10-26 00:39:39 +02:00
parent cc53ba68b5
commit f9366c3146
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
3 changed files with 3 additions and 0 deletions

View file

@ -205,6 +205,7 @@
:multiple true
:ref "file-input"
:value ""
:accept "image/svg+xml"
:type "file"
:on-change on-file-selected}]]))

View file

@ -206,6 +206,7 @@
:multiple true
:ref "file-input"
:value ""
:accept "image/jpeg,image/png"
:type "file"
:on-change on-file-selected}]])))

View file

@ -81,6 +81,7 @@
[:span.text "Upload file"]
[:input.upload-image-input
{:style {:display "none"}
:accept "image/jpeg,image/png"
:type "file"
:ref "input"
:on-change on-files-selected}]]]