add support for folder upload and file tree structure