Project

General

Profile

Actions

Feature #5298

closed

Store attachments in sub directories

Added by Istvan DEMETER over 14 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Category:
Attachments
Target version:
Start date:
2010-04-13
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

To prevent Redmine's storage_path's (by default: File.join RAILS_ROOT, 'files') index growing too large (we have so many file-s there, that accessing to the this directory was getting to become slow).

Files already present in the storage will still available, but the newly uploaded file will be storeg in a subdirectory.

The directory structure: RAILS_ROOT/files/1004/25/100425124312_filname_or_hash.extension.

Happy pathcing :)


Files

0001-Store-file-in-y-m-d-format-sub-dir-to-prevent-direct.patch (1.65 KB) 0001-Store-file-in-y-m-d-format-sub-dir-to-prevent-direct.patch Istvan DEMETER, 2010-04-13 01:22
system_error.png (7.33 KB) system_error.png Mohamed Ahmed, 2013-09-24 17:35
trace.txt (14.5 KB) trace.txt Mohamed Ahmed, 2013-09-24 17:43

Related issues

Has duplicate Redmine - Feature #9908: The /files directory should contain attachments in subdirectoriesClosed

Actions
Has duplicate Redmine - Feature #2228: Multilevel upload dirs to accomodate 1000's of filesClosed2008-11-25

Actions
Actions

Also available in: Atom PDF