File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Resources/Private/Fusion/Elements Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ prototype(Neos.Form:FileUpload) < prototype(Neos.Form.FusionRenderer:FormElement
11
11
}
12
12
content = ${elementValue.fileName}
13
13
@if.hasUploadedResource = ${elementValue ? true : false}
14
+ @if.hasNoValidationErrors = ${!elementHasValidationErrors}
14
15
}
15
16
uploadedResourceHiddenField = Neos.Fusion:Tag {
16
17
@position = 'before field'
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ prototype(Neos.Form:ImageUpload) < prototype(Neos.Form.FusionRenderer:FormElemen
14
14
maximumWidth = 200
15
15
}
16
16
@if.hasUploadedImage = ${elementValue ? true : false}
17
+ @if.hasNoValidationErrors = ${!elementHasValidationErrors}
17
18
}
18
19
uploadedImageHiddenField = Neos.Fusion:Tag {
19
20
@position = 'before field'
@@ -29,6 +30,7 @@ prototype(Neos.Form:ImageUpload) < prototype(Neos.Form.FusionRenderer:FormElemen
29
30
tagName = 'input'
30
31
attributes {
31
32
type = 'file'
33
+ accept = ${Neos.Form.FusionRenderer.getAcceptFromAllowedExtensions(element.properties.allowedTypes)}
32
34
name = ${elementName + '[resource]'}
33
35
}
34
36
}
You can’t perform that action at this time.
0 commit comments