标签: c# php file upload
答案 0 :(得分:2)
使用以下代码将文件名作为POST值发送到php文件,它还存储返回的值
WebClient client = new WebClient(); byte[] bret = client.UploadFile(webpath, "POST", filepath); string sret = System.Text.Encoding.ASCII.GetString(bret);
答案 1 :(得分:0)