Re: Quickform required & freeze vs _file_ (upload)
| From: | Brad Hubbard | Date: | Wed, 02 Apr 2003 00:50:07 +0000 |
| Subject: | Re: Quickform required & freeze vs _file_ (upload) | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4581@lists.php.net to get a copy of this message | ||
On Tue, 1 Apr 2003 21:40 Australia/Melbourne, ASCII characters were aligned
thusly:
> > On Monday, March 31, 2003, at 10:58 PM, Fredrik de Vibe wrote:
> > > It seems that neither freeze nor the required rule work on image
> > > input tags. Am I doing something wrong or is there a reason it is
> > > so?
Is this form using "get" as the method? It's my experience that file uploads
don't work using "get".
> > > I am also curious about the date type. There is no obvious (at
> > > least to me) way to filter this. I admit I haven't checked the
> > > code here, and it might be that this is done automatically, but if
> > > somebody could clarify, I'd be grateful.
>
> ckline@rightcode.net (Charles Kline) writes:
> > I have used the required rule on file fields many times now. i have
> > not tried freeze. as for the question about the date type, what do
> > you meant about filtering?
>
> I sat up too late, I guess. I meant file (upload) input fields, not
> image. It appears you understood this, nonetheless. :-)
>
> Ok, what's weird is that the field _is_ required, but when I fill
> something in, the value isn't registered and I can't get the form
> submitted.
>
> By date filtering, I mean the same as text field filtering etc., like
>
> $form->applyFilter('MyDate', 'intval');
>
> Making sure that all the values are ints. Only this doesn't work as
> the resulting variable in Quickform is an array, and there is afaics
> no other applicable filter. I also tried
You may have to write your own filter (this should not be difficult). Can you
give us more inforamtion on what you want to do?
Cheers,
Brad