Hello

I have a form with 3 file fields, set using multiFile(). Once the form
is submitted:

- how do I find out how many files were actually uploaded (could be
between 0 and 3)?
- how do I iterate over the uploaded files array?

I basically need to rename the files as ID_1.ext, ID_2.ext etc. The ID
is the database auto-increment ID. I know how to use the rename filter
bu am stuck at how to apply it in a multi-file context.

TIA,

Vikram

On Tue, Oct 6, 2009 at 10:33 PM,  <fw-general-digest-h...@lists.zend.com> wrote:
> Hi! This is the ezmlm program. I'm managing the
> fw-general-dig...@lists.zend.com mailing list.
>
> I'm working for my owner, who can be reached
> at fw-general-digest-ow...@lists.zend.com.
>
> Acknowledgment: I have added the address
>
>   vikram.melonf...@googlemail.com
>
> to the fw-general-digest mailing list.
>
> Welcome to fw-general-dig...@lists.zend.com!
>
> Please save this message so that you know the address you are
> subscribed under, in case you later want to unsubscribe or change your
> subscription address.
>
> To unsubscribe, send a message to:
>
>    
> <fw-general-digest-unsubscribe-vikram.melonfire=googlemail....@lists.zend.com>
>
>
> --- Administrative commands for the fw-general-digest list ---
>
> I can handle administrative requests automatically. Please
> do not send them to the list address! Instead, send
> your message to the correct command address:
>
> For help and a description of available commands, send a message to:
>   <fw-general-h...@lists.zend.com>
>
> To subscribe to the list, send a message to:
>   <fw-general-subscr...@lists.zend.com>
>
> To remove your address from the list, just send a message to
> the address in the ``List-Unsubscribe'' header of any list
> message. If you haven't changed addresses since subscribing,
> you can also send a message to:
>   <fw-general-unsubscr...@lists.zend.com>
>
> or for the digest to:
>   <fw-general-digest-unsubscr...@lists.zend.com>
>
> For addition or removal of addresses, I'll send a confirmation
> message to that address. When you receive it, simply reply to it
> to complete the transaction.
>
> If you need to get in touch with the human owner of this list,
> please send a message to:
>
>    <fw-general-ow...@lists.zend.com>
>
> Please include a FORWARDED list message with ALL HEADERS intact
> to make it easier to help you.
>
> --- Enclosed is a copy of the request I received.
>
> Return-Path: <vikram.melonf...@googlemail.com>
> Received: (qmail 4506 invoked from network); 6 Oct 2009 17:03:46 -0000
> Received: from exprod7mx169.postini.com (HELO psmtp.com) (64.18.2.127)
>  by lists.zend.com with SMTP; 6 Oct 2009 17:03:46 -0000
> Received: from source ([209.85.222.171]) by exprod7mx169.postini.com 
> ([64.18.6.14]) with SMTP;
>        Tue, 06 Oct 2009 13:03:46 EDT
> Received: by pzk1 with SMTP id 1so4049889pzk.27
>        for 
> <fw-general-digest-sc.1254848595.bcfhnflkbmbnbodobckm-vikram.melonfire=googlemail....@lists.zend.com>;
>  Tue, 06 Oct 2009 10:03:45 -0700 (PDT)
> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
>        d=googlemail.com; s=gamma;
>        h=domainkey-signature:mime-version:received:reply-to:in-reply-to
>         :references:date:message-id:subject:from:to:content-type
>         :content-transfer-encoding;
>        bh=OAufhh1jrs24NPAK8yRAtnPS8p10mVJ3vWhbJadIMPo=;
>        b=RTmFli0eFS8LQGVytRRqexr+U+5W7IbkgOlVI/6HkVkRIKfpA6Iut7mYmen+aOYQ/4
>         OqZZpblECCSeAsFCxe84yYj2JywQuooEfgYrGPQTearXQeoMkxvopjcRz0oBe5oOTiQM
>         bPnRHOPZ68A21YGFWKJEpw38T0BdEIJQhcO7k=
> DomainKey-Signature: a=rsa-sha1; c=nofws;
>        d=googlemail.com; s=gamma;
>        h=mime-version:reply-to:in-reply-to:references:date:message-id
>         :subject:from:to:content-type:content-transfer-encoding;
>        b=w050OkxA8RW/+COaoPLMcqqoGMLPC4V92sHh/JAnh5KNqqtA00cCanmNHr1ATAE89u
>         gQcpnBBDs160jpJPn4ih/aFPFk33xG0N+KAu4EvrgpF79gtq4i7T4FgVUA/OzzTwd1VE
>         H5eQryXno25FdwuNyMmYKPozxMzwjMToMKObg=
> MIME-Version: 1.0
> Received: by 10.115.114.7 with SMTP id r7mr1634358wam.72.1254848625191; Tue,
>        06 Oct 2009 10:03:45 -0700 (PDT)
> Reply-To: vikram.melonf...@gmail.com
> In-Reply-To: <1254848595.4331.ez...@lists.zend.com>
> References: <1254848595.4331.ez...@lists.zend.com>
> Date: Tue, 6 Oct 2009 22:33:45 +0530
> Message-ID: <7311fa20910061003t794afcfcw8a2d9c7980fff...@mail.gmail.com>
> Subject: Re: confirm subscribe to fw-general-dig...@lists.zend.com
> From: vikram.melonf...@googlemail.com
> To: 
> fw-general-digest-sc.1254848595.bcfhnflkbmbnbodobckm-vikram.melonfire=googlemail....@lists.zend.com
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable
> X-pstn-neptune: 0/0/0.00/0
> X-pstn-levels:     (S:54.59383/99.90000 CV:99.9000 FC:95.5390 LC:95.5390 
> R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
>
>

Reply via email to