Hello! I can''t find an answer to this question. Is it possible to make multiple image uploads using file_column? If not what is the best alternative? -- Posted via http://www.ruby-forum.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 -~----------~----~----~----~------~----~------~--~---
I don''t know about file_column, but acts_as_attachment can do that pretty easily. On 9/13/06, pablo <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > Hello! > > I can''t find an answer to this question. > Is it possible to make multiple image uploads using file_column? > If not what is the best alternative? > > -- > Posted via http://www.ruby-forum.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 -~----------~----~----~----~------~----~------~--~---
you can use this with file_column to upload multiple files http://the-stickman.com/web-development/javascript/upload-multiple- files-with-a-single-file-element/ On 9/14/06, Louis Simoneau <simoneau.louis-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I don''t know about file_column, but acts_as_attachment can do that pretty > easily. > > > On 9/13/06, pablo < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > > > > Hello! > > > > I can''t find an answer to this question. > > Is it possible to make multiple image uploads using file_column? > > If not what is the best alternative? > > > > -- > > Posted via http://www.ruby-forum.com/. > > > > > > > > > >-- www.blogsaic.com search, post, blog --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Dion Hewson wrote:> you can use this with file_column to upload multiple files > > http://the-stickman.com/web-development/javascript/upload-multiple- > files-with-a-single-file-element/ > >> > -- > > www.blogsaic.com > search, post, blogThx guys for alternatives. Now i am trying to get multiple script working with file_column. Can anybody help me with view/controller?, because my files dont get saved properly. -- Posted via http://www.ruby-forum.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 -~----------~----~----~----~------~----~------~--~---
Hi Pablo. I have got file_column working with multiuple uploads, it only needs a few extra lines of code to handle. Unfortunately I haven''t got the code with me as I''m at work now. If noone else can help I''ll post it later. Ross On 9/14/06, pablo <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Dion Hewson wrote: > > you can use this with file_column to upload multiple files > > > > http://the-stickman.com/web-development/javascript/upload-multiple- > > files-with-a-single-file-element/ > > > > > > > > > -- > > > > www.blogsaic.com > > search, post, blog > > Thx guys for alternatives. Now i am trying to get multiple script > working with file_column. Can anybody help me with view/controller?, > because my files dont get saved properly. > > -- > Posted via http://www.ruby-forum.com/. > > > >-- Ross Riley riley.ross-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I need this code lines, please... El jue, 14-09-2006 a las 09:31 +0100, Ross Riley escribió:> Hi Pablo. > > I have got file_column working with multiuple uploads, it only needs a > few extra lines of code to handle. Unfortunately I haven''t got the > code with me as I''m at work now. If noone else can help I''ll post it > later. > > Ross > > On 9/14/06, pablo <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > > Dion Hewson wrote: > > > you can use this with file_column to upload multiple files > > > > > > http://the-stickman.com/web-development/javascript/upload-multiple- > > > files-with-a-single-file-element/ > > > > > > > > > > > > > > -- > > > > > > www.blogsaic.com > > > search, post, blog > > > > Thx guys for alternatives. Now i am trying to get multiple script > > working with file_column. Can anybody help me with view/controller?, > > because my files dont get saved properly. > > > > -- > > Posted via http://www.ruby-forum.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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Juan =?ISO-8859-1?Q?Jos=E9?= Vidal wrote:> I need this code lines, please... > > El jue, 14-09-2006 a las 09:31 +0100, Ross Riley escribió:me too..pleeease. -- Posted via http://www.ruby-forum.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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
hey guys... sorry I forgot to post. The key to getting this working is in the view. Don''t use the standard helpers. My view has the following in a partial. ..... <input id="resource_<%=@i%>_filename_temp" name="resource[<%=@i%>][file_temp]" type="hidden" /> <input id="resource_<%=@i%>_filename" name="resource[<%=@i%>][file]" size="25" type="file" /> .... where @i is a unique id for each resource. ------- Then in the controller all you need is the following in the action that receives the post: ..... params[:resource].each do |id, resource| @email.resources<< Resource.create(resource) end ..... As you can see this is based on multiple attachments for emails if your associations are not like this you may need to adjust accordingly, but if you need help post back with your code. Ross On 9/17/06, pablo <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Juan =?ISO-8859-1?Q?Jos=E9?= Vidal wrote: > > I need this code lines, please... > > > > El jue, 14-09-2006 a las 09:31 +0100, Ross Riley escribió: > > me too..pleeease. > > -- > Posted via http://www.ruby-forum.com/. > > > >-- Ross Riley riley.ross-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---