{"action":"opened","issue":{"url":"https://api.github.com/repos/strapi/strapi/issues/1637","repository_url":"https://api.github.com/repos/strapi/strapi","labels_url":"https://api.github.com/repos/strapi/strapi/issues/1637/labels{/name}","comments_url":"https://api.github.com/repos/strapi/strapi/issues/1637/comments","events_url":"https://api.github.com/repos/strapi/strapi/issues/1637/events","html_url":"https://github.com/strapi/strapi/issues/1637","id":344155429,"node_id":"MDU6SXNzdWUzNDQxNTU0Mjk=","number":1637,"title":"Cannot post file - TypeError: Cannot destructure property `refId` of 'undefined' or 'null'","user":{"login":"madd86","id":23120598,"node_id":"MDQ6VXNlcjIzMTIwNTk4","avatar_url":"https://avatars0.githubusercontent.com/u/23120598?v=4","gravatar_id":"","url":"https://api.github.com/users/madd86","html_url":"https://github.com/madd86","followers_url":"https://api.github.com/users/madd86/followers","following_url":"https://api.github.com/users/madd86/following{/other_user}","gists_url":"https://api.github.com/users/madd86/gists{/gist_id}","starred_url":"https://api.github.com/users/madd86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madd86/subscriptions","organizations_url":"https://api.github.com/users/madd86/orgs","repos_url":"https://api.github.com/users/madd86/repos","events_url":"https://api.github.com/users/madd86/events{/privacy}","received_events_url":"https://api.github.com/users/madd86/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-24T18:36:49Z","updated_at":"2018-07-24T18:36:49Z","closed_at":null,"author_association":"NONE","body":"**Informations**\r\n- **Node.js version**:  v8.10.0\r\n- **npm version**: v6.2.0\r\n- **Strapi version**: v3.0.0-alpha.12.7.1\r\n- **Database**: Mongo DB \r\n- **Operating system**: Ubuntu\r\n\r\n\r\n**What is the current behavior?**\r\n\r\nWhenever I try to post a file I get the following JSON back:\r\n\r\n```\r\n{\r\n    \"message\": \"An internal server error occurred\",\r\n    \"statusCode\": 500,\r\n    \"error\": \"Internal Server Error\"\r\n}\r\n```\r\n\r\nAnd when I read the console I see the following:\r\n\r\n```\r\nTypeError: Cannot destructure property `refId` of 'undefined' or 'null'.\r\n    at upload (/root/fileApi/plugins/upload/controllers/Upload.js:27:60)\r\n    at <anonymous>\r\n    at process._tickDomainCallback (internal/process/next_tick.js:228:7)\r\n```\r\n\r\n**Steps to reproduce the problem**\r\n\r\n1. Create a new strapi project\r\n\r\n2. Create a new Content Type Builder called 'upload'\r\n\r\n3. Create a new field inside it called 'upload'\r\n\r\n4. Try to upload a file using postman, POST on localhost:1337/upload with the header Authorization: Bearer TOKEN_HERE, and the body form-data with the key **upload** and the value the file I want to upload.\r\n\r\n**What is the expected behavior?**\r\n\r\nIt's expected that the file be uploaded successfully.\r\n\r\n**Suggested solutions**\r\n\r\nNo idea.\r\n"}}
{"actor":{"display_login":"madd86"}}