in reply to Planning a Disk CleanUp Script
Hi, not a direct answer to your question, but rather a piece of advice from someone who has done a similar system: consider having your scripts assign the name of the file upon upload. I use sequential integers. The reason is that it's safer to use a known-safe filename (a script-assigned one) when you open up a filehandle to write the user's file to your filesystem, rather than the user-assigned filename which may contain nasty characters such as file piping etc.
I then update one text file that serves as an index, so I know what each numeric filename was originally called by the user, and can be used to refer to it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 2: Planning a Disk CleanUp Script
by tilly (Archbishop) on Jan 13, 2002 at 02:31 UTC | |
by theguvnor (Chaplain) on Jan 15, 2002 at 07:41 UTC |