Hi All,
I would like to get an expereince opinion how can i enable a file upload(image in my case) using elgg libraries, by using ajax, json style.
I have the code that post a form content to an action with form data, but somehow the files content details are not being passed to the action.($_FILES['file']['name'] is empty!)
Is there a lib or a trick i can use here?
Thanks in advanced,
Shachar
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
- Shahar Solomon@shacharsol

Shahar Solomon - 0 likes
- Shahar Solomon@shacharsol

Shahar Solomon - 0 likes
You must log in to post replies.Files can not be submitted via ajax. You need to use a library that fakes ajax submission. You can start by exploring jquery.form.js that is bundled with Elgg.
Thanks for the reply. I'll try to implement it. thought maybe someone already done similar implementation and can share.
I implemented it using iframe and ajax.
Tx,
Shachar