On 5/14/08, Colin Stevens
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
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 Donald
http://destiney.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---