Welcome Guest, Not a member yet? Register   Sign In
implenting an ajax upload status bar?
#1

[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
#2

[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
#3

[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




Theme © iAndrew 2016 - Forum software by © MyBB