On 17/06/06, Steve Bennett <stevage(a)gmail.com>
wrote:
On 6/17/06, Brion Vibber <brion(a)pobox.com>
wrote:
Given the number of files (about 650k in Commons
now) and their wild and crazy
filenames this might not be totally feasible, but we can hope.
Speaking of wild
and crazy filenames, would it be possible to force
some basic naming scheme on incoming files, such as at least making
the extensions lower case?
It's quite a sensible idea, but we'd need to watch for collisions with
existing files where the lowercase extension version pre-exists. The
current collision handling would be fine.
There's an open bug which requests, among other things, to have file
extensions be insignificant with respect to using the images in pages.
Here I should plug my notes on the way files are being stored for the undeletion
archive:
This is a prototype for the new file storage organization for all uploads; after
some shakedown in deletion-land we can see about migrating the public-facing
files too.
Since the actual on-disk filenames will be independent of the in-wiki names,
that'll be the time to implement full extension-independence, file renaming,
image redirects, etc.
Normalizing extensions on upload, though, would be relatively easy. Potentially
it could be added now. (Note I put in a function to do some normalization in the
Image class; it's used for normalizing the extension used for the FileStore name.)
Things to be careful of:
1) Uploading a new version of an existing file should still work.
2) uh... probably something else
-- brion vibber (brion @