I'm using a form with a file input to POST to a different page with the target as an iframe. I'm coding in C# ASP.NET. I have the file posting fine, but don't know how to handle it on the server side. What code do I use to take the POST data and save it as a file on the server? After that, I can manipulate it and delete it with System.IO.
在iframe的回发中,枚举Request.Files
并调用Request.Files[index].SaveAs(string filename)
,将其写入您选择的位置的磁盘中。
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.