2016-07-03 22 views
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?)

enter image description here

我应该为了修正这个错误呢?

+1

检查是否有正确的引用System.Web.HttpContext.Current.Request.Files没有,'System.Web.HttpContext.Current.Request.Files' – SilentCoder

+0

http://stackoverflow.com/questions/10320232/如何对接受-A-文件后的ASP净MVC-4的WebAPI –

回答