-- till <[EMAIL PROTECTED]> wrote (on Friday, 25 May 2007, 08:24 PM +0200): > On 5/25/07, Stephan Stapel <[EMAIL PROTECTED]> wrote: > > 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.
Zend_Controller_Request does not handle $_FILES currently, so the only way to do this right now is plain ol' $_FILES. -- Matthew Weier O'Phinney PHP Developer | [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/
