开发者

Upload file in OpenRasta using PUT

开发者 https://www.devze.com 2023-01-29 02:10 出处:网络
Is it possible to upload a file in OpenRasta using the 开发者_JAVA技巧PUT post method?Question with multiple answers here.

Is it possible to upload a file in OpenRasta using the 开发者_JAVA技巧PUT post method?


Question with multiple answers here.

If you want to do that with an html form, you'll have to add a uri decorator to enable detection of methods that are not supported by html (HttpMethodUriDecorator I think), and then append "!METHOD" to the URI you pass in the form@action attrivute.

Then you can do your binding as usual.

If you want to do it from a standard http client, application/octet-stream should be enough, maybe with the content-disposition header (I can't quite remmeber if the IFile type is processed when using application/octet-stream).

0

精彩评论

暂无评论...
验证码 换一张
取 消