[TYPO3-mvc] 6.2 and Fileupload

Christian Tauscher cms at media-distillery.de
Mon Apr 6 21:16:41 CEST 2015


Anja Leichsenring <aleichsenring at ab-softlab.de> Wrote in message:
> 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.


Brain is smoking... Seems to work better and better. I knew that
 page before, but did not get the connection between my Problem
 and the example wich I claimed to be correct (obviously
 not!)

Thank you for your patience!

Christian

> 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');
>>  >> }
>>  >>
>>  >>
>>  >
>>
> 
> 


-- 


----Android NewsGroup Reader----
http://usenet.sinaapp.com/


More information about the TYPO3-project-typo3v4mvc mailing list