phpknight Posted October 27, 2007 Share Posted October 27, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/74983-uploading-issue-getting-file-data-as-it-grows-etc/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.