如何从 System.Web.HttpPostedFileWrapper 中获取内容

How to get the content from a System.Web.HttpPostedFileWrapper

提问人:Fred Morten Solbakken 提问时间:11/9/2023 最后编辑:Fred Morten Solbakken 更新时间:11/9/2023 访问量:23

问:

我想从表单的网页上读取文本文件中的内容。 我不想保存文件,只想读取它的内容。input type=file

到目前为止,在... 我可以得到 和 ,但是我如何获取文件的内容,以便我可以将其写在网页上?if (IsPost)var uploadedFile = Request.Files[i];uploadedFile.GetType()uploadedFile.ContentLengthuploadedFile.FileName

uploadedFile 的类型为 System.Web.HttpPostedFileWrapper

C# asp.net Web Razor

评论


答: 暂无答案