Upload file in OpenRasta using PUT

Is it possible to upload a file in OpenRasta using the PUT post method?

Answers


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).


Need Your Help

Can i convert activity into a fragment?

android android-activity android-viewpager fragment

How can i convert this activity into a fragment ? i have converted some parts but i get errors, here is my actual code, can anyone provide help to correct me,

compiling an Eclipse project into a jar

java eclipse deployment jar

I reference another eclipse project from the current project I am working on.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.