{"action":"created","issue":{"url":"https://api.github.com/repos/Screenly/screenly-ose/issues/794","repository_url":"https://api.github.com/repos/Screenly/screenly-ose","labels_url":"https://api.github.com/repos/Screenly/screenly-ose/issues/794/labels{/name}","comments_url":"https://api.github.com/repos/Screenly/screenly-ose/issues/794/comments","events_url":"https://api.github.com/repos/Screenly/screenly-ose/issues/794/events","html_url":"https://github.com/Screenly/screenly-ose/issues/794","id":313232262,"number":794,"title":"API error file_upload","user":{"login":"peter-4A5A","id":25684046,"avatar_url":"https://avatars2.githubusercontent.com/u/25684046?v=4","gravatar_id":"","url":"https://api.github.com/users/peter-4A5A","html_url":"https://github.com/peter-4A5A","followers_url":"https://api.github.com/users/peter-4A5A/followers","following_url":"https://api.github.com/users/peter-4A5A/following{/other_user}","gists_url":"https://api.github.com/users/peter-4A5A/gists{/gist_id}","starred_url":"https://api.github.com/users/peter-4A5A/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peter-4A5A/subscriptions","organizations_url":"https://api.github.com/users/peter-4A5A/orgs","repos_url":"https://api.github.com/users/peter-4A5A/repos","events_url":"https://api.github.com/users/peter-4A5A/events{/privacy}","received_events_url":"https://api.github.com/users/peter-4A5A/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-11T08:58:52Z","updated_at":"2018-04-16T07:57:49Z","closed_at":null,"author_association":"NONE","body":"Hi everyone,\r\n\r\nWhen I am trying to add a file asset trough the screenly api, I always get a error 500 internal server error.\r\n\r\nMy post request that I send i as following:\r\n`array(1) { [\"file_upload\"]=> string(17) \"_MON2760kopie.jpg\" }`\r\n\r\nThe error log that i get in my console is:\r\n`Apr 11 10:56:23 raspberrypi python[530]:   File \"/home/pi/screenly/server.py\", line 238, in api_view\r\nApr 11 10:56:23 raspberrypi python[530]:     try:\r\nApr 11 10:56:23 raspberrypi python[530]:   File \"/usr/local/lib/python2.7/dist-packages/flask_restful_swagger_2/swagger.py\", line 219, in inner\r\nApr 11 10:56:23 raspberrypi python[530]:     return f(self, *args, **kwargs)\r\nApr 11 10:56:23 raspberrypi python[530]:   File \"/home/pi/screenly/server.py\", line 550, in post\r\nApr 11 10:56:23 raspberrypi python[530]:     logging.info('import', req)\r\nApr 11 10:56:23 raspberrypi python[530]: AttributeError: 'NoneType' object has no attribute 'filename'`\r\n\r\nThe asset that i want to add is uploaded on the following location: /home/pi/screenly_assets\r\n\r\nUnder the name: _MON2760kopie.jpg.tmp\r\n\r\nCould someone help me and explain what I am doing wrong?\r\n\r\nThank you,"},"comment":{"url":"https://api.github.com/repos/Screenly/screenly-ose/issues/comments/381512520","html_url":"https://github.com/Screenly/screenly-ose/issues/794#issuecomment-381512520","issue_url":"https://api.github.com/repos/Screenly/screenly-ose/issues/794","id":381512520,"user":{"login":"antonmolodykh","id":25369651,"avatar_url":"https://avatars2.githubusercontent.com/u/25369651?v=4","gravatar_id":"","url":"https://api.github.com/users/antonmolodykh","html_url":"https://github.com/antonmolodykh","followers_url":"https://api.github.com/users/antonmolodykh/followers","following_url":"https://api.github.com/users/antonmolodykh/following{/other_user}","gists_url":"https://api.github.com/users/antonmolodykh/gists{/gist_id}","starred_url":"https://api.github.com/users/antonmolodykh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonmolodykh/subscriptions","organizations_url":"https://api.github.com/users/antonmolodykh/orgs","repos_url":"https://api.github.com/users/antonmolodykh/repos","events_url":"https://api.github.com/users/antonmolodykh/events{/privacy}","received_events_url":"https://api.github.com/users/antonmolodykh/received_events","type":"User","site_admin":false},"created_at":"2018-04-16T07:57:49Z","updated_at":"2018-04-16T07:57:49Z","author_association":"COLLABORATOR","body":"@peter-4A5A unfortunately I've never worked with PHP and I cannot tell you what the problem is, or how it's done correctly in this language. However you can be sure that these endpoints work as I described if you read our js code or try to use Postman."}}
{"actor":{"display_login":"antonmolodykh"}}