0

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

casperOne
  • 73,706
  • 19
  • 184
  • 253
Matt Brailsford
  • 2,209
  • 3
  • 28
  • 40

1 Answers1

1

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

SerialSeb
  • 6,701
  • 24
  • 28