Use HTTP POST to send file to IIS 7.5 virtual dire

2019-05-21 22:01发布

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?

3条回答
放荡不羁爱自由
2楼-- · 2019-05-21 22:30

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/

查看更多
ら.Afraid
3楼-- · 2019-05-21 22:31

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

More info.

查看更多
疯言疯语
4楼-- · 2019-05-21 22:31

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

查看更多
登录 后发表回答