Feature #5298
closedStore attachments in sub directories
0%
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
Related issues
Updated by Jean-Philippe Lang about 12 years ago
- Tracker changed from Patch to Feature
- Status changed from New to Closed
- Assignee set to Jean-Philippe Lang
- Target version set to 2.3.0
- Resolution set to Fixed
Feature added in r10990. Attachments are now stored in subdirectories per month (eg. 2012/12).
A rake task was added to move existing files to their target subdirectories:
rake redmine:attachments:move_to_subdirectories
Updated by Hannes Meier about 12 years ago
THANK YOU SO MUCH!
JA IST DENN HEUT SCHON WEIHNACHTEN?
(engl.: is it already christmas eve?)
Updated by Mohamed Ahmed about 11 years ago
- File system_error.png system_error.png added
Failed to run on my machine, Windows 2012 Server x64
Bitnami ruby stack v1.9.3-14 installed to C:\BitNami\rubystack-1.9.3-14
- Redmine version 2.3.3.stable
- Ruby version 1.9.3-p231 (2012-05-25) [i386-mingw32]
- Rails version 3.2.13
- Environment production
- Database adapter Mysql2
Redmine plugins: - no plugin installed
And here is the Trace file