Get a attachment data and put to a file. The page the attachment is on must be provided by space and title or page id. If the attachment name is not provided, it is derived from the file. A numeric attachment id can substitute for the attachment name.