简体   繁体   English

上传文件到IIS服务器

[英]Uploading files to IIS server

I just wanted to ask is it possible to upload files to IIS server?我只是想问可以上传文件到IIS服务器吗? If it's possible please describe me how to do it, thanks.如果可能,请描述我如何做,谢谢。 I've been using google since 1h and i found nothing.我从 1 小时以来一直在使用谷歌,但一无所获。

If all you need is file upload to your web server, you could set up FTP on your server http://www.iis.net/learn/install/installing-publishing-technologies/installing-and-configuring-ftp-7-on-iis-7如果您只需要将文件上传到您的 Web 服务器,您可以在您的服务器上设置 FTP http://www.iis.net/learn/install/installing-publishing-technologies/installing-and-configuring-ftp-7- on-iis-7

If you are looking for a file upload capability for your web application, you can use the FileUpload control .如果您正在为您的 Web 应用程序寻找文件上传功能,您可以使用FileUpload 控件 The file would be POSTed to your page once you submit your form.提交表单后,该文件将被发布到您的页面。 The MSDN page has a an example of how to use the control and save the file on the server side. MSDN页面有一个例子,说明如何在服务器端使用控件和保存文件。

  • Create a web application that has file upload capability创建具有文件上传功能的 Web 应用程序
  • Host the web application in IIS.在 IIS 中托管 Web 应用程序。

Files uploaded will be dropped in your applications folder.上传的文件将被放到您的应用程序文件夹中。

Take a look at for an example of file upload with WebApi: http://blogs.msdn.com/b/henrikn/archive/2012/03/01/file-upload-and-asp-net-web-api.aspx看一个使用 WebApi 上传文件的例子: http : //blogs.msdn.com/b/henrikn/archive/2012/03/01/file-upload-and-asp-net-web-api.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM