While upload a file i will get the tmp_name in the array,
I need to find the absolute (full) path of the tmp_name that means in which path the file is there( like var/www/sample/tmp/phpekIgfr)
Array
(
[name] => profile.jpg
[type] => image/jpeg
[tmp_name] => /tmp/phpekIgfr
[error] => 0
[size] => 44288
)
tmp_namewill always contain the full path./tmp/phpeklgfrpoints to the uploaded file in the root/tmpdirectory. It does not reside in/var/www/sample/tmp.You can change the location PHP stores temporary files in using the
upload_tmp_dirphp.ini setting.