upload a list of files as well as directories