24 Nov
2004
24 Nov
'04
7:32 p.m.
David Siedband wrote:
In one of the web apps I'm working on, users upload files into a LocalFS directory. The python upload script renames the files so that the files name is unique, and based on the corresponding unique ID of it's metadata in my database. Though now when people download the files they have names like 14201.pdf instead of the original filename. Is there a way I can rename the file back to it's original name (stored in the db) upon download? -- why dont you just attach your unique name to the old name instead of replacing it.So it is still unique, and you can then rename the file back befor download. robert