hello all, i run a website for a school, and on the site there''s space for teachers to upload files for students to download them. the system is working great and everyone is real happy with it. i store the files in a folder in the app''s directory. so here''s my problem. the folder is getting really big... there''s 1200+ files in the folder and the total size is (compressed) over 1G. does anyone else do this kind of thing? if so, how do you do it? any tips, pointers, or suggestions are much appreciated. Jon -- 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 -~----------~----~----~----~------~----~------~--~---
If you are using acts_as_attachment (or attachment_fu) to upload the files then you can use this strategy to create more directories. http://blog.spotstory.com/2006/11/10/extending-acts_as_attachment/ If not, I would recommend using attachment_fu to do uploads. -bakki On 10/3/07, Jon Druse <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > hello all, > > i run a website for a school, and on the site there''s space for teachers > to upload files for students to download them. the system is working > great and everyone is real happy with it. i store the files in a folder > in the app''s directory. so here''s my problem. the folder is getting > really big... there''s 1200+ files in the folder and the total size is > (compressed) over 1G. does anyone else do this kind of thing? if so, how > do you do it? any tips, pointers, or suggestions are much appreciated. > > Jon > -- > 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 -~----------~----~----~----~------~----~------~--~---
> -----Original Message----- > From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails- > talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of Jon Druse> so here''s my problem. the folder is getting > really big... there''s 1200+ files in the folder and the total size is > (compressed) over 1G.What is the actual problem that you or your users are experiencing, of which this may be the cause? ///ark --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Are you aware of amazon s3? That may be a possible solution for any storage problems... On Oct 3, 9:16 am, Jon Druse <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> hello all, > > i run a website for a school, and on the site there''s space for teachers > to upload files for students to download them. the system is working > great and everyone is real happy with it. i store the files in a folder > in the app''s directory. so here''s my problem. the folder is getting > really big... there''s 1200+ files in the folder and the total size is > (compressed) over 1G. does anyone else do this kind of thing? if so, how > do you do it? any tips, pointers, or suggestions are much appreciated. > > Jon > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---
On 10/3/07, Bakki Kudva <bakki.kudva-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > If you are using acts_as_attachment (or attachment_fu) to upload the > files then you can use this strategy to create more directories. > http://blog.spotstory.com/2006/11/10/extending-acts_as_attachment/ > > If not, I would recommend using attachment_fu to do uploads.Or just use the latest version of attachment_fu, it does that by default. -- Rick Olson http://lighthouseapp.com http://weblog.techno-weenie.net http://mephistoblog.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 -~----------~----~----~----~------~----~------~--~---