0
我试图实现一个网络摄像头视频录制上传按this RecordRTC example.如何读取.NET的WebAPI一个javascript FORMDATA对象5.2.2
的问题是,“Request.Files”引发以下编译错误如屏幕截图所示。
'HttpRequestMessage' does not contain a definition for 'Files' and no extension method 'Files' accepting a first argument of type 'HttpRequestMessage' could be found (are you missing a using directive or an assembly reference?)
我应该为了修正这个错误呢?
检查是否有正确的引用
System.Web.HttpContext.Current.Request.Files
没有,'System.Web.HttpContext.Current.Request.Files' – SilentCoderhttp://stackoverflow.com/questions/10320232/如何对接受-A-文件后的ASP净MVC-4的WebAPI –