Use HTTP POST to send file to IIS 7.5 virtual directory

China☆狼群 提交于 2019-12-07 23:45:35

问题


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?


回答1:


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/




回答2:


If you enable public write access in IIS with WebDAV, you can upload files using HTTP PUT requests.

More info.




回答3:


There are lots of different WAYS you can handle this on the server side ... but all of them involve writing some kind of "code".

SUGGESTION: Maybe a little asp.net script might be the ticket?

http://msdn.microsoft.com/en-us/library/aa479405.aspx



来源:https://stackoverflow.com/questions/8232033/use-http-post-to-send-file-to-iis-7-5-virtual-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!