CodeIgniter Forums
upload images using ajax - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: upload images using ajax (/showthread.php?tid=24839)



upload images using ajax - El Forum - 11-21-2009

[eluser]amira_fcis[/eluser]
hi guys,
iam a newbie in ajax world but i want to use it to upload images using CI, i've read about how to make ci deals with ajax but till now i can't make my application which upload images.i googled and search somewhere ,but nothing gain.
any help for doing this task i'll be more than greatful.

thanks


upload images using ajax - El Forum - 11-21-2009

[eluser]jedd[/eluser]
I've also recently been enjoying the thrill of jQuery with CI.

Check out [url="http://choosedaily.com/1052/9-ways-to-integrate-ajax-with-codeigniter/"]this bunch of links[/url] for CI + AJAX - there might be something useful in there.


upload images using ajax - El Forum - 11-21-2009

[eluser]tokyotech[/eluser]
Google for "AJAX image upload iframe". As far as I know, you can't use AJAX to upload images, but this hidden iframe technique simulates AJAX.


upload images using ajax - El Forum - 11-21-2009

[eluser]Colin Williams[/eluser]
Well, it doesn't "simulate" Ajax, it IS Ajax. Essentially you submit to the iframe, and then in the iframe response send a callback to the page saying it's complete.