Add method for getting attachment identifier.
Use absolute path.