Actually there's an proposal for handling File Uploads and $_FILES.
http://framework.zend.com/wiki/display/ZFPROP/Zend_Upload+-+Thomas+Weidner
Maybe we will rename it to Zend_Http_Files or Zend_Http_Upload
But the functionality is not accepted for now...
So until this is approved or reject you will have to do it your own.
Greetings
Thomas
I18N Team Leader
----- Original Message -----
From: "Matthew Weier O'Phinney" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, May 25, 2007 8:29 PM
Subject: Re: [fw-general] Uploading files using Zend_Http_Client
-- 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/