Jump to content
chasethemetal

uploadprogress

Recommended Posts

Hey all! I just installed the PECL extension uploadprogress, and I have verified it's installation and everything. I was wondering if someone could point me to a supppper simple example of someone using this. All am looking for is a way to output the number as a percent, nothing styled or anything, just a raw use case using ajax so its in the same page as the upload form. Any examples if ya know what I'm looking for would be awesome! thanks all!

Share this post


Link to post
Share on other sites

If you have PHP 5.4.0, you can use the session extension for that. There are examples in this PhpMaster article for example.The basic idea is that you have a separate file that reads a session variable holding the current progress of file(s) being uploaded during the same session. The client repeatedly calls this file with XMLHttpRequest and updates a progress bar accordingly.I'd assume the PECL extension works on a similar principle.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...