5
回答
JAVA代码片段改写成PHP
public async void Post(string name, [FromUri] string access_token)  
{  
        var body = await Request.Content.ReadAsByteArrayAsync();  
        var appData = HostingEnvironment.MapPath("~/App_Data/");  
        var fileExt = name.Substring(name.LastIndexOf('.') + 1);  
        var outFile = Path.Combine(appData,name);  
        File.WriteAllBytes(outFile, body);  
}

PHP
举报
Flameman
发帖于4年前 5回/245阅
顶部