[TYPO3-mvc] Problems with Upload file
Daniel Dimitrov
danielsd_bg at yahoo.fr
Mon Aug 16 09:20:15 CEST 2010
Hey Chien,
"Chiến Nguyễn" <chiennvit at gmail.com> wrote in message
news:mailman.36485.1281880457.610.typo3-project-typo3v4mvc at lists.typo3.org...
> 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
Are all properties in the form defined in your model? If any of them is
missing or
written wrong, then you will get this message.
>>>
>>
>> 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
>>
Cheers,
Daniel
More information about the TYPO3-project-typo3v4mvc
mailing list