View Single Post
Old 04-15-2004, 10:40 AM  
Posse Member
Join Date: Dec 2002
Posts: 1,956

If the client sends RETR somefile.ext, you NEED a file somefile.ext in the current dir or ioFTPD won't be able to send it. You can't tell io to send some other file instead of the one asked in the RETR command.
-> PRE RETR = ..\scripts\zipitup.bat gets called with RETR in parameter
-> produce a file in /
File is transfered
-> OnDownloadComplete = ..\scripts\cleanit.bat gets called with the filename in parameter
-> deletes the file
Same should be done OnDownloadFailed, in case the person doesn't retry the transfer. You would be left with a .zip on your /...
Mouton is offline   Reply With Quote