implenting an ajax upload status bar? |
[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
[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
[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 |
Welcome Guest, Not a member yet? Register Sign In |