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

Jerome Schneider typo3dev at ameos.com
Tue May 6 09:49:13 CEST 2008


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!


-- 


*Jérôme Schneider*
/Developer/
/Formidable - Rapid Application Developpement Framework for Typo3
<http://formidable.typo3.ug>/
/Ameos <http://www.ameos.com>/


More information about the TYPO3-project-formidable mailing list