WebApi上传附件,源码谁有,谢谢,帮帮忙,只需要写接口就行、前台ajax调用接口。
http://www.cnblogs.com/liuruitao/p/5547961.html
http://download.csdn.net/download/starlightextinction/8732727
[HttpPost]
public bool GetFileContent()
{
string key = Request.Form["key"];
try
{
HttpPostedFileBase file = Request.Files[key];
if (file == null || file.ContentLength <= 0)
{
//文件为空
}
else
{
//具体业务逻辑代码
}
}
catch (Exception ex)
{
}
}