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 –