if a filename is the same on sharing, change to a randomly generated filename