upload_folder returns a tuple, make sure we assign the return as such