Closed
Bug 628809
Opened 15 years ago
Closed 7 years ago
clean up media/uploads/
Categories
(support.mozilla.org :: Code Quality, task)
support.mozilla.org
Code Quality
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: jsocol, Unassigned)
References
Details
We upload into the following locations right now:
media/uploads/avatars (needs to be split up, see bug 619222, but otherwise fine)
media/uploads/images (fine)
media/uploads/images/thumbnails (fine)
media/uploads/gallery/images (wut? we have an 'images' directory)
media/uploads/gallery/images/thumbnails (this is just ridiculous)
media/uploads/gallery/videos
media/uploads/gallery/videos/thumbnails
Can we flatten that and then do something fancy to break these up into subdirectories?
Basically, my thinking is this:
media/uploads/avatars
media/uploads/images
media/uploads/images/thumbnails
media/uploads/videos
media/uploads/videos/thumbnails
(We should be able to slowly move the old ones over time, as long as the database still points to media/uploads/gallery/*/whatever.* we should be OK. We can work that out.)
Then, within each directory, we can use the hash that our magic renaming storage engine sticks on the end of file names to go from:
'%s-%s.%s' % (date, hash, ext)
to
'%s/%s-%s.%s' % (hash[0], date, hash, ext)
So we break all uploads into subdirectories. (especially avatars)
It might even be worth doing
%s/%s/filename % (hash[0], hash[1])
It wouldn't be much benefit for videos/images, but for avatars it'd be huge.
Updated•15 years ago
|
Target Milestone: 2011Q2 → 2011Q3
You need to log in
before you can comment on or make changes to this bug.
Description
•