Jump to content

Uploading issue--getting file data as it grows, etc.


phpknight

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.