When replacing the file, use the new filename given by the file.