views:

582

answers:

3

Zend Framework makes development a lot easier; for instance there is a getPost function from the Zend_Http that handles POST parameters.

Is there anything similar to handle file uploads? I can access $_FILES directly, but I would rather use a built in function to keep things consistent.

+1  A: 

You can do file uploads with Zend_Form. Tutorial here.

da5id
+1  A: 

Read about Zend_File_Transfer. Does that do what you need?

Bill Karwin
I just tried that, and to my surprise it throws an exception saying 'Implementation in Progress'. Though the documentation seems complete?
Marcel Tjandraatmadja
Sounds like you should use Zend_Form_Element_File as @da5id and @harvejs have suggested.
Bill Karwin
+3  A: 

Hi, you can use Zend_Form_Element_File, it has very similar functionality as Zend_File_Transfer and it works without any problems.

http://framework.zend.com/manual/en/zend.form.standardElements.html#zend.form.standardElements.file

harvejs