In my elgg service, I have a parameter called file_cntent which is supposed to receive file content. In my html form, I have a input#file with name file_content. But my actual php methid receives onle the file name fr file_content parameter.
I want to receive the file content. How can I do it?
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.
- ihayredinov@ihayredinov
ihayredinov - 0 likes
- Selvaraj Antonyraj@selvaa89
Selvaraj Antonyraj - 0 likes
- Selvaraj Antonyraj@selvaa89
Selvaraj Antonyraj - 0 likes
- ihayredinov@ihayredinov
ihayredinov - 0 likes
You must log in to post replies.Set your form's enctype to 'multipart/form-data'
@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.