fixing code to add file to selected batch at time of upload