File export based on unique id