[geeks] ftp upload renaming
Charles Shannon Hendrix
shannon at widomaker.com
Thu Sep 14 21:25:12 CDT 2006
I have a client who wants users to be able to stage new documents to a
UNIX server that processes documents. The processing involves moving
a document into the right place, reading it and putting parts of it in a
database, etc.
The user's will not have direct access to this machine: they can only
upload files to it.
The client doesn't want the users to be able to upload any filename they
choose, and some I'm looking for a way to have the ftp server take
whatever file they upload and give it a uniform name. Something simple
like a sequence will be fine. In other words:
file0001
file0002
file0003
file0004
It doesn't matter because the files will be processed, put in a
database, and a copy renamed in a structured hiearchy by the
system anyway.
Mainly I just need to avoid user stupidity in the names.
Is there any kind of ftp server that has "upload hooks" to handle things
like this?
The primary limitations:
- the client program which the users have must be fairly easy to
use, so that limits it to fairly common ftp, GUI scp, and other
system->system copy programs
- the client needs to be able to run on MacOS X and Windows
- the limits on file sizes needs to be very high since the documents
can be large
I know I could take the code for an ftp server and make a modification
to do generation file renames, but I'd like something standard that is
already out there if possible.
--
shannon "AT" widomaker.com -- ["That which is overdesigned, too highly
specific, anticipates outcome; the anticipation of outcome garantees, if
not failure, the absence of grace." -- William Gibson, All Tomorrow's
Parties]
More information about the geeks
mailing list