[TYPO3-english] Re: How to handle file uploads in the Backend ?

Florian Rival florian.typo3 at oktopuce.fr
Wed Mar 22 15:41:52 CET 2017


There is a specific view helper in Helhum example for file reference, why don't you use it ?

<f:form action="create"  enctype="multipart/form-data"  name="newExample" object="{newExample}">
	<h:form.upload property="image" >
		<f:if condition="{resource}">
			<f:image image="{resource}" alt="" width="50"/>
		</f:if>
	</h:form.upload><br />
	<f:form.submit value="Create new" />
</f:form>

The message you have says that the file was not created in table sys_file_reference so it can't be inserted in your domain.

First of all, see in Typo3 BE if you can add a file and if it's ok try again in FE and check all the configuration.

Florian
-- 
-- Florian Rival --
www.oktopuce.fr


More information about the TYPO3-english mailing list