我想创建oData控制器来上传文件
FileDto
========================= Http请求操作==================
•GET:〜/ Files({id})
Content-Type: application/json
Result: FileDto without Content
Run Code Online (Sandbox Code Playgroud)
•GET:〜/ Files({id})
Content-Type: application/octet-stream
Result: Stream of the File only
Run Code Online (Sandbox Code Playgroud)
•POST:〜/ Files
Content-Type: ?
Body: FileDto with Content
Result: FileId
Run Code Online (Sandbox Code Playgroud)
当与OData结合时,我不确定如何实现这一目标.
提前致谢
处理文件流GET,POST和DELETE操作的推荐方法是什么.我得到了如何做到这一点的链接,但它的V3版本.在将这个解决方案移植到OData V4伊朗的过程中,提出了一系列问题.
如果此功能尚未在web apis中构建,我们是否有任何未来的发布计划?
-Samir