I'd like to use the IIS FTP server, but I need to be able to tell when a file upload completes for a specific user. I'd rather not rely on watching file changes directly within Windows because I don't think I'll be able to tell if the file upload truly completed or was aborted and might be completed at a later time.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can use a custom logging provider to do this. I've implemented something very similar using
http://learn.iis.net/page.aspx/632/how-to-use-managed-code-c-to-create-an-ftp-provider-that-sends-an-email-when-files-are-uploaded/
as as start.