[TYPO3-mvc] 6.2 and Fileupload

Anja Leichsenring aleichsenring at ab-softlab.de
Mon Apr 6 19:57:41 CEST 2015


Hi Christian,

find (german) explanation about your error here: 
http://www.typo3lexikon.de/typo3-tutorials/extensions/extbase/property-mapper.html

It tells you what to do, I hope.

Greetz Anja



On 06.04.2015 19:35, Christian Tauscher wrote:
>
> Am 06.04.2015 um 19:04 schrieb Anja Leichsenring:
>
>  > I guess you have a validationError on your updateAction, the Script
>  > tries to fall back to the form action and there it has not property
>  > mapping allowence. Provide it in an initializeAction
>
> Thank you for your quick answer.
>
> Sorry, i have to do a little bit try and error and ask silly questions.
> I am too unexperienced with this extbase things:
>
> This is my init
>
> public function initializeUpdateAction() {
> $this->setTypeConverterConfigurationForImageUpload('printitem');
> }
>
> Can you give me an example what you mean?
> The Property mapper thing I have never unsestood, ist to new to me.
>
> the domain-modell says
>      /**
>       * Image
>       *
>       * @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
>       */
>      protected $image;
>
> sould be ok? Not?
>
> I am complete clue less.. No idea
>
>
> Christian
>
>
>  >> /**
>  >>   * @param \Tmd\screenprinting\Domain\Model\Printitem $printitem
>  >>   * @return void
>  >>   */
>  >> public function
>  >> updateFormAction(\Tmd\screenprinting\Domain\Model\Printitem
> $printitem) {
>  >>    $options = $this->getAllFormOptions();
>  >>    $this->view->assign('printitem', $printitem);
>  >> }
>  >> /**
>  >>   * Set TypeConverter option for image upload
>  >>   */
>  >> public function initializeUpdateAction() {
>  >>    $this->setTypeConverterConfigurationForImageUpload('printitem');
>  >> }
>  >> /**
>  >>   * @param \Tmd\Screenprinting\Domain\Model\Printitem $printitem
>  >>   * @return void
>  >>   */
>  >> public function updateAction(\Tmd\Screenprinting\Domain\Model\Printitem
>  >> $printitem) {
>  >> die('here9');
>  >>    $this->printitemRepository->update($printitem);
>  >>    $this->addFlashMessage('Your Item was updated.');
>  >>    $this->redirect('list');
>  >> }
>  >>
>  >>
>  >
>



More information about the TYPO3-project-typo3v4mvc mailing list