using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Newtonsoft.Json;
using System.Threading.Tasks;
using System.Diagnostics;
using System.Text;
namespace webapitest.Controllers
{
public class testController : ApiController
{
public class postbody
{
public string token { get; set; }
}
[System.Web.Http.HttpPost]
public string UploadFile()
{
System.Web.HttpContext context = System.Web.HttpContext.Current;
string str = "{";
int c = context.Request.Form.Count;
for (int i=0;i<c;i++)//提取除文件外的其他参数
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Newtonsoft.Json;
using System.Threading.Tasks;
using System.Diagnostics;
using System.Text;
namespace webapitest.Controllers
{
public class testController : ApiController
{
public class postbody
{
public string token { get; set; }
}
[System.Web.Http.HttpPost]
public string UploadFile()
{
System.Web.HttpContext context = System.Web.HttpContext.Current;
string str = "{";
int c = context.Request.Form.Count;
for (int i=0;i<c;i++)//提取除文件外的其他参数