Completed implementation of directory upload