document new uploadFiles function