2016-07-03 63 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 –

回答