generated a short unique id for file before upload.