2009年3月28日星期六

Re: [fw-mvc] form->getValues and file upload

Ed,

I don't quite understand what you mean because I replied to Simone.
You never sent a line of code and I was just replying to the extension of 2
base classes from Simone which is not necessary.

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

----- Original Message -----
From: "Ed Lazor" <edlazor@internetarchitects.biz>
To: "Thomas Weidner" <thomas.weidner@gmx.at>
Cc: <fw-mvc@lists.zend.com>
Sent: Saturday, March 28, 2009 9:17 PM
Subject: Re: [fw-mvc] form->getValues and file upload


> On Sat, Mar 28, 2009 at 1:00 PM, Thomas Weidner <thomas.weidner@gmx.at>
> wrote:
>> Yes, you misunderstood completly.
>>
>> When you want to "GET" the content of a file element you will of course
>> get
>> the file itself which means that it's being uploaded.
>>
>> When you want to validate a element you should call isValid() and not
>> getValues().
>> When you have to change the content you should apply file-filters... they
>> were build just for this usecase.
>> Only when the files are VALID you should call receive() or getValues().
>
>
> That's how the code I sent earlier is structured, but should I still
> run into the problem that I experienced with getValues?
>
> -Ed

没有评论: