On Tue, Mar 29, 2005 at 03:21:40PM -0500, Guest via RT wrote:
Show quoted text>
> It'd be really nice if the name of the file could be preserved when
> saving to the filesystem as well as stored into the uploads table.
> Some error checking would need to added to ensure that duplicates are
> not overwritten (or add a flag to allow overwrite).
I'm not interested in preserving the file name on the file system
(although I would consider a patch).
What's an example of when you would use the file name if it was stored
in the database? I never use them. I suppose rt.cpan.org uses these to
some affect-- to display the name of attachments to download.
Some care would need to be taken that the file name was "safe"-- didn't
include some evil XSS for example. :)
Show quoted text> Along these lines, it'd be useful to add the feature of storing files
> into directory hierarchies like CPAN.pm does for authors. (I don't
> know what this technique is called).
Did you find the option named 'file_scheme'? It does something like
that, and I use it to store what I suspect is about 1,000,000 images.
Mark