Generate a unique upload id to keep track of the upload in the case of file name collisions. Factored out for testability.