6f0684c4ca8a75a189ee3b19c4502236d9cfb1ba
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Resources / Private / Frontend / Partials / FileUpload.html
1 <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers" data-namespace-typo3-fluid="true">
2 <formvh:renderRenderable renderable="{element}">
3 <f:render partial="Field/Field" arguments="{element: element}" contentAs="elementContent">
4 <formvh:form.uploadedResource
5 property="{element.identifier}"
6 as="resource"
7 id="{element.uniqueIdentifier}"
8 additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
9 accept="{element.properties.allowedMimeTypes}"
10 >
11 <f:if condition="{resource}">
12 <div id="{element.uniqueIdentifier}-preview">
13 {resource.originalResource.originalFile.name}
14 </div>
15 </f:if>
16 </formvh:form.uploadedResource>
17 </f:render>
18 </formvh:renderRenderable>
19 </html>