convert PHP code to C# [closed]
I have this code,need convert to C#.net..
<form method="POST" enctype="multipart/form-data" method="">
开发者_JAVA百科<input type="file" name="file">
<input type="submit">
<?
if(!empty($_FILES["file"]))
echo file_get_contents($_FILES["file"]["tmp_name"]);
?>
thanks!
It's like ↓
Request.Files["file"].SaveAs(System.IO.GetTempFileName() + "\\" + "filename");
精彩评论