Hi, I''m new to ruby and rails and have implemented a multiple image upload using the attachment_fu plugin with great struggle :-) I need a feature that enables me to upload images in bulk/batch e.g. hundreds of images. I have had not much luck on finding any sources on this. Ideally I would like to upload images by just simply using ctr-shift to select all the images in a particular folder and upload them. Any suggestions on this or other possible methods on doing this? Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 15 Aug 2007, at 11:43, raj wrote:> I''m new to ruby and rails and have implemented a multiple image upload > using the attachment_fu plugin with great struggle :-) I need a > feature that enables me to upload images in bulk/batch e.g. hundreds > of images. I have had not much luck on finding any sources on this. > Ideally I would like to upload images by just simply using ctr-shift > to select all the images in a particular folder and upload them. Any > suggestions on this or other possible methods on doing this?Use SWFUpload (http://swfupload.mammon.se/). Because it uses Flash, the file selection dialog allows multiple selection, as well as filetype and filesize filtering. Be sure to search the archives for more info on implementing it, because there are a few catches (but once it''s up and running, it''s just fantastic). Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
> > Use SWFUpload (http://swfupload.mammon.se/). Because it uses Flash, > the file selection dialog allows multiple selection, as well as > filetype and filesize filtering. Be sure to search the archives for > more info on implementing it, because there are a few catches (but > once it''s up and running, it''s just fantastic). > > Best regards > > Peter De BerdtThanks Peter Looks like a great application just need to figure out how to integrate it with ruby on rails. I''ll look into this. Thanks again Raj --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 15 Aug 2007, at 13:17, raj wrote:> Looks like a great application just need to figure out how to > integrate it with ruby on rails. I''ll look into this.You can just copy most of the example code. You can rewrite the callbacks to use prototype/scriptaculous (you''ll need to use some basic javascript for this). A few pointers that may help you down the road: * If the upload script is in an "authenticated" section of your application (i.e. dependent on the session): http:// blog.inquirylabs.com/2006/12/09/getting-the-_session_id-from- swfupload/ You''ll need to pass the session id in the url * In your method/action that handles the upload, don''t render a result page or redirect at the end of the method, just return a status code or render :nothing => true. You have to use the upload_queue_completed callback to render the result (i.e. show the new images, ...) If you search the archives, you''ll find some code snippets I already posted, this should also provide you with some tips. Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
On 15 Aug 2007, at 13:39, Peter De Berdt wrote:> On 15 Aug 2007, at 13:17, raj wrote: >> Looks like a great application just need to figure out how to >> integrate it with ruby on rails. I''ll look into this. > > If you search the archives, you''ll find some code snippets I > already posted, this should also provide you with some tips.You may find some additional useful tips here: http://blog.airbladesoftware.com/2007/8/8/uploading-files-with-swfupload Regards, Andy Stewart --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Andrew Stewart wrote:> On 15 Aug 2007, at 13:39, Peter De Berdt wrote: >> On 15 Aug 2007, at 13:17, raj wrote: >>> Looks like a great application just need to figure out how to >>> integrate it with ruby on rails. I''ll look into this. >> >> If you search the archives, you''ll find some code snippets I >> already posted, this should also provide you with some tips. > > You may find some additional useful tips here: > > http://blog.airbladesoftware.com/2007/8/8/uploading-files-with-swfupload > > Regards, > Andy StewartI have a problem that I''m working in Linux, hence flash is definite no. Any other suggestions? I have got an upload working see my other post http://www.ruby-forum.com/topic/124421#new, but am looking to enhance it. Regards Rajeev A. -- 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?hl=en -~----------~----~----~----~------~----~------~--~---