Folder upload function added. Tree needs to be improved...