{"action":"created","issue":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/10449","repository_url":"https://api.github.com/repos/WordPress/gutenberg","labels_url":"https://api.github.com/repos/WordPress/gutenberg/issues/10449/labels{/name}","comments_url":"https://api.github.com/repos/WordPress/gutenberg/issues/10449/comments","events_url":"https://api.github.com/repos/WordPress/gutenberg/issues/10449/events","html_url":"https://github.com/WordPress/gutenberg/issues/10449","id":368362247,"node_id":"MDU6SXNzdWUzNjgzNjIyNDc=","number":10449,"title":"Is there an Upload Component","user":{"login":"squibbleFish","id":5972722,"node_id":"MDQ6VXNlcjU5NzI3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/5972722?v=4","gravatar_id":"","url":"https://api.github.com/users/squibbleFish","html_url":"https://github.com/squibbleFish","followers_url":"https://api.github.com/users/squibbleFish/followers","following_url":"https://api.github.com/users/squibbleFish/following{/other_user}","gists_url":"https://api.github.com/users/squibbleFish/gists{/gist_id}","starred_url":"https://api.github.com/users/squibbleFish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squibbleFish/subscriptions","organizations_url":"https://api.github.com/users/squibbleFish/orgs","repos_url":"https://api.github.com/users/squibbleFish/repos","events_url":"https://api.github.com/users/squibbleFish/events{/privacy}","received_events_url":"https://api.github.com/users/squibbleFish/received_events","type":"User","site_admin":false},"labels":[{"id":531680828,"node_id":"MDU6TGFiZWw1MzE2ODA4Mjg=","url":"https://api.github.com/repos/WordPress/gutenberg/labels/[Type]%20Question","name":"[Type] Question","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-09T19:30:58Z","updated_at":"2018-10-09T20:11:47Z","closed_at":null,"author_association":"NONE","body":"Currently in Gutenberg, I noticed that we have an Add Media component, which allows us to upload media to wp-uploads. This is awesome, but I am wondering if there is another component that gives me the `file` input type. To help explain, I have a custom block that will allow for a file of JSON data to be uploaded and accepted via the rest api. We then parse and sanitize the data set in the server and store the JSON via post meta. Is there a component I am missing. Part of my reasoning for this question is, I want to use `wp.apiFetch` to send the data, but I can not send `new formData()` using that method. It appears that `apiFetch` sanitizes that data, so I am stuck using the native `fetch` api. Any help is appreciated. \r\n"},"comment":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/comments/428334030","html_url":"https://github.com/WordPress/gutenberg/issues/10449#issuecomment-428334030","issue_url":"https://api.github.com/repos/WordPress/gutenberg/issues/10449","id":428334030,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODMzNDAzMA==","user":{"login":"Soean","id":695201,"node_id":"MDQ6VXNlcjY5NTIwMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/695201?v=4","gravatar_id":"","url":"https://api.github.com/users/Soean","html_url":"https://github.com/Soean","followers_url":"https://api.github.com/users/Soean/followers","following_url":"https://api.github.com/users/Soean/following{/other_user}","gists_url":"https://api.github.com/users/Soean/gists{/gist_id}","starred_url":"https://api.github.com/users/Soean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Soean/subscriptions","organizations_url":"https://api.github.com/users/Soean/orgs","repos_url":"https://api.github.com/users/Soean/repos","events_url":"https://api.github.com/users/Soean/events{/privacy}","received_events_url":"https://api.github.com/users/Soean/received_events","type":"User","site_admin":false},"created_at":"2018-10-09T20:11:47Z","updated_at":"2018-10-09T20:11:47Z","author_association":"MEMBER","body":"So you want to upload and parse a file and not store the file on the server?"}}
{"actor":{"display_login":"Soean"}}