简体   繁体   中英

Uploading files to IIS server

I just wanted to ask is it possible to upload files to IIS server? If it's possible please describe me how to do it, thanks. I've been using google since 1h and i found nothing.

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

If you are looking for a file upload capability for your web application, you can use the FileUpload control . 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.

  • Create a web application that has file upload capability
  • Host the web application in IIS.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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