使用HTTP POST将文件发送到IIS 7.5虚拟目录 [英] Use HTTP POST to send file to IIS 7.5 virtual directory
问题描述
是否可以允许HTTP客户端使用HTTP POST(使用Content-Type:multipart / form-data)将图像文件上传到IIS 7.5虚拟目录而无需编写服务器端代码?
没有服务器端代码,这是不可能的。如果需要HTTP POST,则需要编写代码。如果你确实需要HTTP,请考虑WebDav:
如果你确实需要HTTP, http://www.windowsnetworking.com/articles_tutorials/webdav-iis.html
http://learn.iis.net/page.aspx/350/installing-and-configuring-webdav-on-iis/
Is it possible to allow HTTP clients to USE HTTP POST (with Content-Type: multipart/form-data) to upload image files to an IIS 7.5 virtual directory without writing server-side code?
Without server-side code, that is not possible. If HTTP POST is a requirement, you need to write code. Otherwise, configure an FTP site on your IIS installation.
If you really need HTTP, consider WebDav:
http://www.windowsnetworking.com/articles_tutorials/webdav-iis.html
http://learn.iis.net/page.aspx/350/installing-and-configuring-webdav-on-iis/
这篇关于使用HTTP POST将文件发送到IIS 7.5虚拟目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!