ASP.NET C# - Save FileStream on server

后端 未结 3 1726
自闭症患者
自闭症患者 2021-01-26 10:46

I got beginners question.

How to save a file stream to a file on server?!

I got this:

var source = Request.QueryString[\"src\"];
WebClient webcli         


        
3条回答
  •  粉色の甜心
    2021-01-26 11:30

    You can use code to get the website's directory and form your own file path.

    See this question for how to get the website's directory.

    How to get website's physical path on local IIS server? (from a desktop app)

提交回复
热议问题