[TYPO3-mvc] <f:form.upload and how to upload files?

Braulio J. Solano-Rojas braulio at solsoft.biz
Sat Aug 7 00:18:54 CEST 2010


Hi.

El 02/08/2010 03:36 a.m., Daniel Dimitrov escribió:
> Ok, I found the problem myself - my form was missing an
> enctype="multipart/form-data"...

Did it work for you?

Because I have the same encoding type, however my $_FILES array gets 
overwritten with extbase objects (at least that's what my debugger shows 
me).

Regards,

B.


> "Daniel Dimitrov" <danielsd_bg at yahoo.fr> wrote in message
> news:mailman.1.1280740367.16287.typo3-project-typo3v4mvc at lists.typo3.org...
>> Hey guys,
>> I'm wondering how to upload an image file from the frontend.
>>
>> I've searched trough the list and I know that there is still no
>> "magic" upload function in extabse, but it is being worked on:
>> http://forge.typo3.org/issues/5718
>>
>> So far, so good... I'm trying to do the upload myself, but the $_FILES
>> array is empty???
>> My form has this field:
>> <input type="file" name="tx_bwshop_pi1[newSupplier][image]" />
>>
>> my Model has
>>
>> /**
>> * var string
>> **/
>> protected $image;
>>
>> When I click on save, the form is saved and I see that something is
>> written to the image field (it is defined as tinyblob)
>> and the fluid image tag creates this error message:
>> Could not get image resource for
>> "uploads/shop/supplier/nameOfPicture.png".
>>
>> The question for me is how do I get the uploaded file??? Once I have
>> it I can move it to uploads/shop/supplier, but where is it hidding?
>>
>> Kind Regards,
>> Daniel
>



More information about the TYPO3-project-typo3v4mvc mailing list