{"action":"created","issue":{"url":"https://api.github.com/repos/webcompat/webcompat.com/issues/1306","repository_url":"https://api.github.com/repos/webcompat/webcompat.com","labels_url":"https://api.github.com/repos/webcompat/webcompat.com/issues/1306/labels{/name}","comments_url":"https://api.github.com/repos/webcompat/webcompat.com/issues/1306/comments","events_url":"https://api.github.com/repos/webcompat/webcompat.com/issues/1306/events","html_url":"https://github.com/webcompat/webcompat.com/issues/1306","id":203720527,"number":1306,"title":"Don't start uploading image until user clicks submit","user":{"login":"miketaylr","id":67283,"avatar_url":"https://avatars.githubusercontent.com/u/67283?v=3","gravatar_id":"","url":"https://api.github.com/users/miketaylr","html_url":"https://github.com/miketaylr","followers_url":"https://api.github.com/users/miketaylr/followers","following_url":"https://api.github.com/users/miketaylr/following{/other_user}","gists_url":"https://api.github.com/users/miketaylr/gists{/gist_id}","starred_url":"https://api.github.com/users/miketaylr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miketaylr/subscriptions","organizations_url":"https://api.github.com/users/miketaylr/orgs","repos_url":"https://api.github.com/users/miketaylr/repos","events_url":"https://api.github.com/users/miketaylr/events{/privacy}","received_events_url":"https://api.github.com/users/miketaylr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-01-27T19:34:14Z","updated_at":"2017-02-03T18:08:45Z","closed_at":null,"body":"Right now we auto-upload, the motivation being your upload is done while you're filling out details.\r\n\r\nWe should probably wait until the user hits submit before uploading to a) prevent a ton of unneeded images (people just clicking the button, checking it out) and b) not upload unneeded images if you decide to change it."},"comment":{"url":"https://api.github.com/repos/webcompat/webcompat.com/issues/comments/277319302","html_url":"https://github.com/webcompat/webcompat.com/issues/1306#issuecomment-277319302","issue_url":"https://api.github.com/repos/webcompat/webcompat.com/issues/1306","id":277319302,"user":{"login":"miketaylr","id":67283,"avatar_url":"https://avatars.githubusercontent.com/u/67283?v=3","gravatar_id":"","url":"https://api.github.com/users/miketaylr","html_url":"https://github.com/miketaylr","followers_url":"https://api.github.com/users/miketaylr/followers","following_url":"https://api.github.com/users/miketaylr/following{/other_user}","gists_url":"https://api.github.com/users/miketaylr/gists{/gist_id}","starred_url":"https://api.github.com/users/miketaylr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miketaylr/subscriptions","organizations_url":"https://api.github.com/users/miketaylr/orgs","repos_url":"https://api.github.com/users/miketaylr/repos","events_url":"https://api.github.com/users/miketaylr/events{/privacy}","received_events_url":"https://api.github.com/users/miketaylr/received_events","type":"User","site_admin":false},"created_at":"2017-02-03T18:08:45Z","updated_at":"2017-02-03T18:08:45Z","body":"Good thoughts. I was just thinking something simple like:\r\n\r\n1) select image, or add-on already put image [fill out form like normal], do nothing to image\r\n2) when user clicks upload, do the XHR POST and request the image path, stick that in the markdown and submit the form immediately. \r\n\r\nWe already show a spinner, so there will be visual feedback while the upload is happening.\r\n\r\nBut I like your \"Another way\" option too."}}
{"actor":{"display_login":"miketaylr"}}