Hy Matthias,

How do you come to Zend_Validate_File_Abstract ?
This class does neighter exist nor is it called in the code.

Calling the code from my blog there is no exception raised like you described it. How would it be if you just add a require_once 'Zend/File/Transfer/Adapter/Http.php'; ?

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com


----- Original Message ----- From: "Matthias Buesing" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, August 10, 2008 6:24 PM
Subject: [fw-general] Zend_File_Transfer


Hello friendlies,
i'd like to use the New File Transfer HTTP Feature.

I adsorbed a little test-Script from
http://www.thomasweidner.com/flatpress/index.php
for this Feature and all i get is a Errormessage:

"Fatal error: require_once(): Failed opening required
'Zend/Validate/File/Abstract.php'"

And of course the File does not exists. Neither in 1.5 nor
in 1.6 or in the svn.

Hmm Any Idea how to fix it?

$upload = new Zend_File_Transfer_Adapter_Http();
$upload->addValidators('Size', '250kB')
         ->addValidators('Count', 5)
         ->addValidators('FilesSize', '1MB')
         ->addValidators('Extension', 'gif, jpg, png')
         ->addValidators('ImageSize', array(10, 10, 1024, 768))
         ->setDestination('C:/uploads');

Regards
Matthias

Reply via email to