Search code examples
c#iisftphttphandler

How to know a file has been ftp'd in IIS?


We are using IIS for our ftp server and I would like to write either a c# windows service or a HTTP handler/module that would know that that a file has been ftp'd to a folder so that I can then them move it to another folder as well as updating a database.

My concern is if I do not know if the file has finished FTP (ing) to a folder then if I try to do something with it I would get a file access error.


Solution

  • This has already been answered in this question Does IIS FTP include an API to detect when a file upload completes?

    Essentially you can use a custom logging provider.