I can't find specific information as to the uniqueness of $_FILES["FileName"]["tmp_name"]
.
From: http://php.net/manual/en/reserved.variables.files.php
I see that 6 hex characters are what make the file name unique.
e.g. /tmp/php/php6hst32
From local testing (XAMPP | WIN 7) I see only 4 hex characters
e.g. \tmp\phpCC07.tmp
This would suggest a min uniqueness of 1
in 65536
which doesn't seem that unique to me.
Where is this set within PHP? (it's not in php.ini
). Is it hard coded or can it be configured?
I realise that a clash could only happen within a brief period since the file should last only the duration of the script but these odds don't offer the comfort I was expecting.