Subforms and file uploads

Hi, i’m a newbie so any help and patience appreciated.

I have a form with fields. Depending on the value in the fields the user
will need to upload either one or two CSV files.

The problem I have is that i can’t upload more than one file on a form
cos it doesn’t work. and I need to submit the data from the form as
well.

so can I have a main form with two sub forms to achieve this, and if so
How do I do that ?

Ta

On 5/14/08, Colin S. [email protected] wrote:

I have a form with fields. Depending on the value in the fields the user
will need to upload either one or two CSV files.

The problem I have is that i can’t upload more than one file on a form
cos it doesn’t work. and I need to submit the data from the form as
well.

so can I have a main form with two sub forms to achieve this, and if so
How do I do that ?

Where’s your non-working code?

I suspect you need to make your file field element capable of sending
an array of data, rather than a single element. Try naming it file[]
or such.


Greg D.
http://destiney.com/