开发者

Upload file in OpenRasta using PUT

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜