Edit "getAttachmentUrl" method