Skip to content

Commit 6bf4fc0

Browse files
TASK: Also use accept attribute for image uploads
1 parent 616e916 commit 6bf4fc0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Resources/Private/Fusion/Elements/ImageUpload.fusion

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ prototype(Neos.Form:ImageUpload) < prototype(Neos.Form.FusionRenderer:FormElemen
3030
tagName = 'input'
3131
attributes {
3232
type = 'file'
33+
accept = ${Neos.Form.FusionRenderer.getAcceptFromAllowedExtensions(element.properties.allowedTypes)}
3334
name = ${elementName + '[resource]'}
3435
}
3536
}

0 commit comments

Comments
 (0)