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

Daniel Dimitrov danielsd_bg at yahoo.fr
Mon Aug 2 11:07:27 CEST 2010


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