this is one approach
Part 1
when a user visits your site, he communicates with the server and sends randomly generated 10 alphanumeric characters, for example (Xf4ht5Y4u9). This is user id code
can be easily achieved using javascript and ajax on the client side.
on the server side, you can use PHP to create a temporary directory with the user identification code
Part 2
user uploads files and sends them asynchronously to this temporary folder
Part 3
= true - , , , temp. temp . , . ,
= false --- temp, .
4
. temp , . script
, , , . , , temp > 6 -
6 , , , , . , .
5 , , , .