Change client signature for attachFileReference to use the FileReference
interface
use isEmpty to check for empty string