时间:2010-07-24 18:05:18

标签: c# php file upload

2 个答案:

答案 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)