IIS FTP包含一个API来检测文件上传何时完成? [英] Does IIS FTP include an API to detect when a file upload completes?

查看:116
本文介绍了IIS FTP包含一个API来检测文件上传何时完成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用IIS FTP服务器,但我需要能够告诉特定用户何时完成文件上传。我宁愿不直接在Windows中观察文件更改,因为我认为我不能确定文件上传是否真正完成或中止,并可能在以后完成。

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.

推荐答案

您可以使用自定义日志记录提供程序来执行此操作。我已经实现了一些非常类似的功能,使用

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-sending-email-when-files-are-upload /

作为开始。

这篇关于IIS FTP包含一个API来检测文件上传何时完成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆