set folder option on click

+ When clicking on a folder set the folder in the select menu for add
file and add folder to the clicked folder.
this way you can upload into
a folder you just clicked straight away.