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.
Share
In the postback of your iframe, enumerate over
Request.Filesand callRequest.Files[index].SaveAs(string filename)to write it to the disk in the location of your choice.