Use HTTP POST to send file to IIS 7.5 virtual dire

2019-05-21 22:00发布

问题:

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