{"action":"created","issue":{"url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/issues/3","labels_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/issues/3/comments","events_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/issues/3/events","html_url":"https://github.com/IsraelOrtuno/pipedrive/issues/3","id":124239281,"number":3,"title":"File upload","user":{"login":"stephanvierkant","id":601833,"avatar_url":"https://avatars.githubusercontent.com/u/601833?v=3","gravatar_id":"","url":"https://api.github.com/users/stephanvierkant","html_url":"https://github.com/stephanvierkant","followers_url":"https://api.github.com/users/stephanvierkant/followers","following_url":"https://api.github.com/users/stephanvierkant/following{/other_user}","gists_url":"https://api.github.com/users/stephanvierkant/gists{/gist_id}","starred_url":"https://api.github.com/users/stephanvierkant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephanvierkant/subscriptions","organizations_url":"https://api.github.com/users/stephanvierkant/orgs","repos_url":"https://api.github.com/users/stephanvierkant/repos","events_url":"https://api.github.com/users/stephanvierkant/events{/privacy}","received_events_url":"https://api.github.com/users/stephanvierkant/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-29T17:06:12Z","updated_at":"2015-12-29T21:52:49Z","closed_at":null,"body":"I can't get the file upload working. I'm not sure it's an issue with the library, maybe I'm doing something wrong. If so, I'm sorry ;)\r\n\r\n```\r\npublic function uploadFile($dealId, \\SplFileInfo $file)\r\n{\r\n     $upload = $this->pipedrive->files->add([\r\n        'file' => $file,\r\n        'deal_id' => $dealId\r\n    ]);\r\n}\r\n```\r\n\r\nThis throws a `PipedriveException`: 'No files were provided with the request.'. \r\n\r\nWhat's going wrong?"},"comment":{"url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/issues/comments/167885822","html_url":"https://github.com/IsraelOrtuno/pipedrive/issues/3#issuecomment-167885822","issue_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/issues/3","id":167885822,"user":{"login":"IsraelOrtuno","id":1769417,"avatar_url":"https://avatars.githubusercontent.com/u/1769417?v=3","gravatar_id":"","url":"https://api.github.com/users/IsraelOrtuno","html_url":"https://github.com/IsraelOrtuno","followers_url":"https://api.github.com/users/IsraelOrtuno/followers","following_url":"https://api.github.com/users/IsraelOrtuno/following{/other_user}","gists_url":"https://api.github.com/users/IsraelOrtuno/gists{/gist_id}","starred_url":"https://api.github.com/users/IsraelOrtuno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IsraelOrtuno/subscriptions","organizations_url":"https://api.github.com/users/IsraelOrtuno/orgs","repos_url":"https://api.github.com/users/IsraelOrtuno/repos","events_url":"https://api.github.com/users/IsraelOrtuno/events{/privacy}","received_events_url":"https://api.github.com/users/IsraelOrtuno/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T21:52:49Z","updated_at":"2015-12-29T21:52:49Z","body":"What kind of file are you trying to save? I got that error when saving a `.php` file, but it was obvious."}}