使用HTTP POST将文件发送到IIS 7.5虚拟目录 [英] Use HTTP POST to send file to IIS 7.5 virtual directory

查看:188
本文介绍了使用HTTP POST将文件发送到IIS 7.5虚拟目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以允许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屋!

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