On 5/25/07, Stephan Stapel <[EMAIL PROTECTED]> wrote:
Hi!

I tried uploading a file using Zend_Http_Client as described in
http://framework.zend.com/manual/en/zend.http.client.advanced.html
but am a bit confused.

Does someone have a little (self-contained?) example about uploading file?

What I'm basically worrying about is how to integrate such an upload
into a controller action?

The example assumes that file resides on your server. It's not
expecting user input.

If you provide an <input type="file" /> in your view, and post to
"uploadAction", I'd say you'd have to check $this->_request->isPost()
so everything is correct and then check $this->_request->getParams()
if you find $_FILES somewhere (disclaimer: I haven't tried it). in
Zend_Controller_Request.

If all fails, you can always bypass and use $_FILES.


Cheers,
Till

Reply via email to