what is equivalents to $_FILES['file']['tmp_name']
of PHP in C#.net?
The equivalent in ASP.NET is:
Request.Files["file"].SaveAs("Your filename");
ASP.NET do not expose the temporary filename which is used during the file upload.
If you want to validate the contents of the file you could read from Request.Files["file"].InputStream
.
More information at MSDN: https://learn.microsoft.com/en-us/dotnet/api/system.web.httprequest.files