Reputation: 166
<flux:field.file />
is deprecated in the latest version of TYPO3/Fluid.
Is there an alternative? How can I upload my videos in the backend right now?
Upvotes: 0
Views: 1180
Reputation: 767
You can try that:
Configuration:
<flux:field.inline.fal name="settings.bgImage" label="LLL:EXT(...)" required="0" />
Preview:
<v:content.resources.fal field="settings.bgImage" as="images" record="{record}">
<f:for each="{images}" as="image">
<f:if condition="{image}">
<f:image src="{image.id}" treatIdAsReference="1" maxWidth="100" />
</f:if>
</f:for></v:content.resources.fal>
Main:
<f:if condition='{settings.bgImage}'>
{v:content.resources.fal(field: 'settings.bgImage') -> v:iterator.first() -> v:variable.set(name: 'bgImage')}
<f:image treatIdAsReference="true" src="{bgImage.id}" title="{bgImage.title}" alt="{bgImage.alternative}" width="100c" /></f:if>
Upvotes: 0