@Ismayil Khayredinov
Now I am receiving "Missing parameter file_content in method myapi.mymethod"
I digged into the elgg source code. get_input function in input.php takes the parameter only from $_REQUEST. But the uploaded files will be in $_FILES.
Any Idea?
Yeah, you are right. I don't think there is a workaround. You will need to hack the core. I would open a ticket on trac.
Use names for your fields and associative arrays for your exposed methods.
You can also test your exposed methods via curl or file_get_contents
Selvaraj, what you mention is a bug or feature on Elgg's side. You can go around it by setting default value for rest fields which are default, use associative array to pass such fields and by this go around Elgg field control or fix it with core change in api library.
Can anyone say how to pass associative array to a web service?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.