save the sample type when uploading multiple files