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:
parent
cc53ba68b5
commit
f9366c3146
3 changed files with 3 additions and 0 deletions
|
@ -205,6 +205,7 @@
|
|||
:multiple true
|
||||
:ref "file-input"
|
||||
:value ""
|
||||
:accept "image/svg+xml"
|
||||
:type "file"
|
||||
:on-change on-file-selected}]]))
|
||||
|
||||
|
|
|
@ -206,6 +206,7 @@
|
|||
:multiple true
|
||||
:ref "file-input"
|
||||
:value ""
|
||||
:accept "image/jpeg,image/png"
|
||||
:type "file"
|
||||
:on-change on-file-selected}]])))
|
||||
|
||||
|
|
|
@ -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}]]]
|
||||
|
|
Loading…
Add table
Reference in a new issue