[TYPO3-project-formidable] Upload manager with mandatory fields.

Ian Solo ian at webian.it
Wed May 7 04:30:55 CEST 2008


Many thanks Jerome! It works with renderlet:UPLOAD!

But, I used a renderlet:FILE, to display the image after the upload.
With a renderlet:FILE, after the submit I get this error:
********************************************************************
Fatal error: Call to undefined method tx_rdtfile::deleteFile() in 
f:\documenti\!!!!lavori in 
corso\Plus4you\!www\typo3\ext\ameos_formidable\api\class.tx_ameosformidable.php(4986) 
: eval()'d code on line 8
********************************************************************

I could use a renderlet:UPLOAD but... am I wrong or I can't display the 
image with a renderlet:UPLOAD?

Best regards,
ian

Jerome Schneider wrote:
> Hi Ian,
> 
> I placed a working snippet example at:
> http://formidable.typo3.ug/pastebin/snippet/40.html
> 
> The code line that deletes a file from rdt_upload is: 
> $this->aORenderlets["my-upload-field"]->deleteFile($sFileName)
> 
> It has to be called after file upload handling, but before html 
> rendering, so the perfect checkpoint for the job is: before-render
> 
> If you have questions I'll gladly explain
> 
> Best regards,
> Jerome Schneider
> 
> 
> 
> 
> Ian Solo a écrit :
>> Hi!
>> I'm still working on my Formidable Gallery where FE users can upload 
>> their images.
>>
>> I'm stucked in the upload form.
>>
>> The user should upload the image and write a title (mandatory field).
>>
>> But, if a user upload an image and don't write the title the error is 
>> displayed, the record in the DB is not created, but the file is 
>> uploaded by this time.
>>
>> Is there a way to delete the file if the mandatory fields of the form 
>> don't pass the validation?
>>
>> Or do you have any other idea to achieve this?
>>
>> Many thanks for your time!
>> ian
>>
>> P.S.
>> The more I use/learn this framework the more I love it! really!
> 
> 


More information about the TYPO3-project-formidable mailing list