implenting an ajax upload status bar? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: implenting an ajax upload status bar? (/showthread.php?tid=10661) |
implenting an ajax upload status bar? - El Forum - 08-07-2008 [eluser]adamBouchard[/eluser] Hi, Has anyone implemented a good ajax uploading status indicator with the codeigniter upload class? I'm trying to implement a prototype based ajax status bar after a user uploads an attachment. Example: "http://www.bram.us/demo/projects/jsprogressbarhandler/ajaxprogressbar.html" Here my thoughts on an approach: 1. User uploads an attachment 2. on the "onSubmit" event, call a javascript "upload_status" function initiating the progress bar 3. continually make ajax calls comparing the temp file size with the size of the original file. Update the percent complete on the status bar. -attached are my javascript files, and view file. thanks, Adam implenting an ajax upload status bar? - El Forum - 08-08-2008 [eluser]Matthew Lanham[/eluser] You need PHP5 with APC enabled to do this, i have been meaning to try it out, but haven't had a chance, i came across this a while ago: http://www.phpriot.com/articles/php-ajax-file-uploads implenting an ajax upload status bar? - El Forum - 05-09-2010 [eluser]Unknown[/eluser] i've been using PHP APC with my uploader. it works fine, you can take a look at http://developers.sirika.com/mfu/ Cheers Florent |