I want to write php script which will show how much size of file have been uploaded while upload process countinues. To achieve this i am going to have use ajax to get the size of file from upload_tmp_dir. But by default it is not set. Also it changes according to operating systems or user options. Is there any way of finding it correctly?
If it is set by default ini_get('upload_tmp_dir') will return what i want. When it returns nothing what to do?
Thanks in advance.