When a non-file endpoint is attached to a file, keep the file endpoint