Is there a way to run a script over a file that has been uploaded on an FTP server.
I am running ProFTP on the server and would like to process the uploaded files immediately after they are uploaded. The ways I have currently thought of are
- Cron Job to find new files in the FTP and process them every minute.
- Write a daemon to monitor the file upload log and use that information to process the file.
Is there a better way, or a directive I can set on the server to run a script on all file uploads?
Update: Linux OS