[TYPO3-mvc] Problems with Upload file

Chiến Nguyễn chiennvit at gmail.com
Sun Aug 15 15:54:14 CEST 2010


Yes, of course

<f:form method="post" controller="Step" action="create" name="newStep"
object="{newStep}" enctype="multipart/form-data">
        <label for="content">Description1 <span
class="required">(required)</span></label><br />
        <f:form.textarea property="description1" rows="8" cols="46" /><br />
        <label for="content">Logo1 <span
class="required">(required)</span></label><br />
        <f:form.textbox property="logo1" /><br />
        <label for="content">Description2 <span
class="required">(required)</span></label><br />
        <f:form.textarea property="description2" rows="8" cols="46" /><br />
        <label for="content">Logo2 <span
class="required">(required)</span></label><br />
        <f:form.textbox property="logo2" /><br />
        <label for="content">Description3 <span
class="required">(required)</span></label><br />
        <f:form.textarea property="description3" rows="8" cols="46" /><br />
        <label for="content">Logo3 <span
class="required">(required)</span></label><br />
        <f:form.textbox property="logo3" /><br />
        <f:form.submit class="submit" value="Submit"/>
    </f:form>

On Sun, Aug 15, 2010 at 5:35 PM, Franz Koch <
typo3.RemoveForMessage at elements-net.de> wrote:

> Hey,
>
>
>  When my form contains upload
>>
>> <f:form.upload property="file" name="img" />
>>
>> After click on submit form, i get error *#1251730701: The value must be of
>> type "Tx_XXX_Domain_Model_Step", but was of type "NULL".*
>> But when i use textbox replace upload, i can store input values into
>> datbase
>>
>
> is your form of enctype multipart/form-data?
>
> --
> kind regards,
> Franz Koch
>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>


More information about the TYPO3-project-typo3v4mvc mailing list