i thought you wanted something like "moving uploaded files just after the upload completes", or another thing that can be made with 2-3 lines.
what you ask for is much more complex, and i personally don't have the time to do it.
try searching for something similar in the forum.
good luck.