Is it possible to upload a file in OpenRasta using the PUT post method?
Asked
Active
Viewed 399 times
0
-
Dangerously similar to the other question you just asked... Though not identical... – Oded Dec 02 '10 at 19:36
-
I thought it best to split them up in to shorter, specific questions, than one big, all purpose question. – Matt Brailsford Dec 02 '10 at 19:39
-
Agreed. However, some people may only read the titles (yes, I see they are different, but some people vote by gut reaction)... I suggest to wait a bit before posting multiple related questions. – Oded Dec 02 '10 at 19:41
-
Good point, will do in future. – Matt Brailsford Dec 02 '10 at 19:45
-
Good thing I read the question before I vote :P – Tony Abrams Dec 02 '10 at 19:59
1 Answers
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