10 messages in com.googlegroups.pylons-discuss[slightly OT] file storage in simple CMS
FromSent OnAttachments
Sean Davis13 Jan 2007 09:08 
Cliff Wells13 Jan 2007 09:14 
ToddG13 Jan 2007 09:53 
Cliff Wells13 Jan 2007 10:47 
Bob Ippolito13 Jan 2007 10:56 
Yves-Eric13 Jan 2007 17:41 
Sean Davis13 Jan 2007 18:37 
Yves-Eric14 Jan 2007 19:53 
Shannon -jj Behrens19 Jan 2007 11:39 
Bob Ippolito19 Jan 2007 11:47 
Subject:[slightly OT] file storage in simple CMS
From:Sean Davis (sean@public.gmane.org)
Date:01/13/2007 09:08:47 AM
List:com.googlegroups.pylons-discuss

This is slightly off-topic, but I'll ask anyway, in case someone has already done this.

I want to make a simple file storage system of file uploads. However, I would really like to store the files on the filesystem with the original filename. There is the possibility of two files having the same filename. Have other people thought about a system that makes sense to keep the next from overwriting the first? My thought is to create a set of directories on the file system, but how can I organize such a set of directories that makes sense? The files info will be stored in a database, so I can check for the existence of the files before writing a new one.

Thanks, Sean