FTP Upload Trigger Script

Home

This page describes setup steps required to implement an FTP server that takes some action when a file is uploaded. To accomplish this, we use the Debian operating system along with Pure FTP Server.

  1. apt-get install pure-ftpd
  2. echo 'yes' > /etc/pure-ftpd/conf/CallUploadScript
  3. Edit /etc/default/pure-ftpd-common and specify the upload script in the UPLOADSCRIPT variable.
  4. chmod +x the upload script.
  5. Restart the service.