Uploading files... managing lots of files

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

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

-----Original Message-----
From: [email protected] [mailto:rubyonrails-
[email protected]] On Behalf Of Jon D.

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

Are you aware of amazon s3? That may be a possible solution for any
storage problems…

On 10/3/07, Bakki K. [email protected] 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 O.
http://lighthouseapp.com
http://weblog.techno-weenie.net
http://mephistoblog.com