[TYPO3-formidable] validator:FILE, renderlet:UPLOAD and the array problem...

Lukas Domnick lukas.domnick at antwerpes.de
Wed Nov 2 11:03:10 CET 2011


Hey all,

I just debugged my way through the formidable classes because the 
extension validator in formidable 2.0.505 wouldn't approve of my 
uploaded PDF file in an upload renderlet.
I found that there is a shuffle-up of the usage of the file info array 
and file name string in the class.tx_vafile.php - in line 16, $sFileName 
= $oRdt->getValue(); returns an array, while a string is expected (and 
needed for further steps).

I quick-fixed this as follows: After the beforementioned line, insert:

if( is_array($sFileName) ) {
     $sFileName = $sFileName[ "name" ];
}

Hope that helps others experiencing the same problem.

Greetings from Cologne
Lukas

-- 
<http://faces.doccheck.com/pg/profile/24564ad4d69dbd5e1aa02ea689ee0166>
Mein Profil 
<http://faces.doccheck.com/pg/profile/24564ad4d69dbd5e1aa02ea689ee0166> 
bei DocCheck
Folge uns auf Facebook <http://www.facebook.com/antwerpes> und Twitter 
<http://twitter.com/antwerpes>

antwerpes ag
Lukas Domnick
Junior Developer
Vogelsanger Str. 66
D - 50823 Köln
fon: +49.221.92053-381
fax: +49.221.92053-133
mailto:lukas.domnick at antwerpes.de <mailto:lukas.domnick at antwerpes.de>
home:www.antwerpes.de <http://www.antwerpes.de>

Amtsgericht Köln HRB 20862
Vorstand: Dr. Frank Antwerpes (Vorsitz), Thilo Kölzer, Jens Knoop, 
Philip Stadtmann
Vorsitzender des Aufsichtsrats: Dr. Johannes Kersten

Bitte beachten Sie unseren Disclaimer <http://www.antwerpes.de/disclaimer>.


More information about the TYPO3-project-formidable mailing list