Jump to content

Recommended Posts

I am attempting to write an uploading graph.  It might become more involved, but the point is to show the user what percentage of the the files being uploaded remains.  So, if he uploads 5 files with a total of 25 MB, it would display a bar graph and fill up as it goes.  Alternatively, it could also go file by file if the other one is too difficult.

 

The solution will ultimately involve AJAX, but I have not found one that actually works.  PHP is my strong point, so I was wondering if there is a way with PHP (obviously called over and over using AJAX) 1) get the size of the temp files as they grow and 2) to know the total file size right away before everything has already been fully submitted.  I am pretty sure 1 is possible, but I am not quite sure about 2.  My Javascript skills are weak, so I would like to do as much as I can with PHP and then fill in the rest with Javascript.

 

If I knew how to get each of these to work at any given time, I could probably figure out the rest.

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.