I don’t really understand what you are trying.
Normally you would first upload a CSV, and then after the CSV has been uploaded, would run a function to replace the name in the data uploaded by the CSV with the unique ID