How can i get how much size of file have been uploade while upload process continues.
Does anybody kows?
( php script )
Does anybody kows?
( php script )
| shamil wrote: |
| How can i get how much size of file have been uploade while upload process continues.
Does anybody kows? ( php script ) |
| Ratman2050 wrote: | ||
Do you really need a script for that? It usually tells you in KB or MB how large your file is, and how many files are needed to upload. |
| rohan2kool wrote: |
| Well, it's a pretty dirty trick. What you do is use AJAX to do that. Using iframe's you upload the file to the server and at the same time, constantly conact the server using XMLHttpRequest to a file which reports the size of the file being uploaded. This trick is just not recommended for the obvious pitfalls in it's way. But, you also need to know where to look for the file. Like, while uploading the file thru a php script which uploads it to a location like /myhome/files/thefile.ext, you won't find the file at that place till the upload is complete. It'll be there in the temp_uploads folder. check ur php.in to know the folder on ur server system. I also think, there is a php constant to know that, not pretty sure for that. |