{"action":"created","issue":{"url":"https://api.github.com/repos/frappe/frappe-client/issues/10","repository_url":"https://api.github.com/repos/frappe/frappe-client","labels_url":"https://api.github.com/repos/frappe/frappe-client/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/frappe/frappe-client/issues/10/comments","events_url":"https://api.github.com/repos/frappe/frappe-client/issues/10/events","html_url":"https://github.com/frappe/frappe-client/issues/10","id":109835300,"number":10,"title":"add methods to GET/PUT file attachments","user":{"login":"jevonearth","id":1114943,"avatar_url":"https://avatars.githubusercontent.com/u/1114943?v=3","gravatar_id":"","url":"https://api.github.com/users/jevonearth","html_url":"https://github.com/jevonearth","followers_url":"https://api.github.com/users/jevonearth/followers","following_url":"https://api.github.com/users/jevonearth/following{/other_user}","gists_url":"https://api.github.com/users/jevonearth/gists{/gist_id}","starred_url":"https://api.github.com/users/jevonearth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jevonearth/subscriptions","organizations_url":"https://api.github.com/users/jevonearth/orgs","repos_url":"https://api.github.com/users/jevonearth/repos","events_url":"https://api.github.com/users/jevonearth/events{/privacy}","received_events_url":"https://api.github.com/users/jevonearth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-05T16:21:28Z","updated_at":"2016-03-07T15:46:57Z","closed_at":null,"body":"frappe-client doesn't have methods to fetch attachments for a given document. The meta data is available using get_doc as shown below.\r\n\r\n```python\r\n    return wn.get_doc(\r\n            'File Data',\r\n            filters=[\r\n                ['File Data', 'attached_to_doctype', '=', doctype],\r\n                ['File Data', 'attached_to_name', '=', docname]],\r\n            fields=['name','file_name','file_url', 'file_size'])\r\n```\r\n\r\nMethods to fetch and post attachments would be very useful."},"comment":{"url":"https://api.github.com/repos/frappe/frappe-client/issues/comments/193306593","html_url":"https://github.com/frappe/frappe-client/issues/10#issuecomment-193306593","issue_url":"https://api.github.com/repos/frappe/frappe-client/issues/10","id":193306593,"user":{"login":"MaxMorais","id":1288676,"avatar_url":"https://avatars.githubusercontent.com/u/1288676?v=3","gravatar_id":"","url":"https://api.github.com/users/MaxMorais","html_url":"https://github.com/MaxMorais","followers_url":"https://api.github.com/users/MaxMorais/followers","following_url":"https://api.github.com/users/MaxMorais/following{/other_user}","gists_url":"https://api.github.com/users/MaxMorais/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxMorais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxMorais/subscriptions","organizations_url":"https://api.github.com/users/MaxMorais/orgs","repos_url":"https://api.github.com/users/MaxMorais/repos","events_url":"https://api.github.com/users/MaxMorais/events{/privacy}","received_events_url":"https://api.github.com/users/MaxMorais/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T15:46:57Z","updated_at":"2016-03-07T15:46:57Z","body":"@jevonearth, can you describe the functions that do you need?\r\n\r\nAttachment upload\r\nAttachment download\r\nAttachment delete\r\n\r\nOther?\r\n"}}