如何在 .NET WebAPI 5.2.2 上读取 javascript FormData 对象
How to read a javascript FormData object on .NET WebAPI 5.2.2
我正在尝试根据 this RecordRTC example.
实施网络摄像头视频录制上传
问题是 "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
而不是 HttpRequestMessage
我正在尝试根据 this RecordRTC example.
实施网络摄像头视频录制上传问题是 "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
而不是 HttpRequestMessage