{"action":"created","issue":{"url":"https://api.github.com/repos/ruckus/quickbooks-ruby/issues/151","labels_url":"https://api.github.com/repos/ruckus/quickbooks-ruby/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/ruckus/quickbooks-ruby/issues/151/comments","events_url":"https://api.github.com/repos/ruckus/quickbooks-ruby/issues/151/events","html_url":"https://github.com/ruckus/quickbooks-ruby/issues/151","id":40460629,"number":151,"title":"Uploading a file (pdf, jpeg, xls....)","user":{"login":"GildedHonour","id":2032888,"avatar_url":"https://avatars.githubusercontent.com/u/2032888?v=3","gravatar_id":"","url":"https://api.github.com/users/GildedHonour","html_url":"https://github.com/GildedHonour","followers_url":"https://api.github.com/users/GildedHonour/followers","following_url":"https://api.github.com/users/GildedHonour/following{/other_user}","gists_url":"https://api.github.com/users/GildedHonour/gists{/gist_id}","starred_url":"https://api.github.com/users/GildedHonour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GildedHonour/subscriptions","organizations_url":"https://api.github.com/users/GildedHonour/orgs","repos_url":"https://api.github.com/users/GildedHonour/repos","events_url":"https://api.github.com/users/GildedHonour/events{/privacy}","received_events_url":"https://api.github.com/users/GildedHonour/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":28,"created_at":"2014-08-18T06:59:44Z","updated_at":"2015-02-24T15:28:31Z","closed_at":null,"body":"I've got a Python script which is supposed to upload files to Quick Books by their API. I've faced into some issues which I couldn't have solved such as \"This type can't be consumed\" (for application/pdf, xml and others) or when I used \"multipart/form-data\" it said \"Could find no content-disposition header with in a part\" or when I'd changed it a bit, it seemed to work well (there were no errors in the response) but the attachments weren't really uploaded.\r\n\r\nI'd like to upload a file (pdf, jpeg, xls....) using this gem to make sure it really works well and there is no mistake in the API of Quick Books. I'm familiar with this gem but didn't find a model or service in its source code which looked like the one I was looking for (Attachable, File or something else).\r\n\r\nSo is there any simple example? "},"comment":{"url":"https://api.github.com/repos/ruckus/quickbooks-ruby/issues/comments/75777359","html_url":"https://github.com/ruckus/quickbooks-ruby/issues/151#issuecomment-75777359","issue_url":"https://api.github.com/repos/ruckus/quickbooks-ruby/issues/151","id":75777359,"user":{"login":"GildedHonour","id":2032888,"avatar_url":"https://avatars.githubusercontent.com/u/2032888?v=3","gravatar_id":"","url":"https://api.github.com/users/GildedHonour","html_url":"https://github.com/GildedHonour","followers_url":"https://api.github.com/users/GildedHonour/followers","following_url":"https://api.github.com/users/GildedHonour/following{/other_user}","gists_url":"https://api.github.com/users/GildedHonour/gists{/gist_id}","starred_url":"https://api.github.com/users/GildedHonour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GildedHonour/subscriptions","organizations_url":"https://api.github.com/users/GildedHonour/orgs","repos_url":"https://api.github.com/users/GildedHonour/repos","events_url":"https://api.github.com/users/GildedHonour/events{/privacy}","received_events_url":"https://api.github.com/users/GildedHonour/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T15:28:31Z","updated_at":"2015-02-24T15:28:31Z","body":">>Ultimately, i think its simpler to only have a one-upload-at-a-time API interface and require the user to do their own iteration, thus doing their own error handling.\r\n\r\nDo you mean leave it as it is now?"}}