{"action":"created","issue":{"url":"https://api.github.com/repos/anttiviljami/wp-libre-form/issues/7","repository_url":"https://api.github.com/repos/anttiviljami/wp-libre-form","labels_url":"https://api.github.com/repos/anttiviljami/wp-libre-form/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/anttiviljami/wp-libre-form/issues/7/comments","events_url":"https://api.github.com/repos/anttiviljami/wp-libre-form/issues/7/events","html_url":"https://github.com/anttiviljami/wp-libre-form/pull/7","id":165972231,"number":7,"title":"Add basic support for file uploads","user":{"login":"k1sul1","id":2719615,"avatar_url":"https://avatars.githubusercontent.com/u/2719615?v=3","gravatar_id":"","url":"https://api.github.com/users/k1sul1","html_url":"https://github.com/k1sul1","followers_url":"https://api.github.com/users/k1sul1/followers","following_url":"https://api.github.com/users/k1sul1/following{/other_user}","gists_url":"https://api.github.com/users/k1sul1/gists{/gist_id}","starred_url":"https://api.github.com/users/k1sul1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k1sul1/subscriptions","organizations_url":"https://api.github.com/users/k1sul1/orgs","repos_url":"https://api.github.com/users/k1sul1/repos","events_url":"https://api.github.com/users/k1sul1/events{/privacy}","received_events_url":"https://api.github.com/users/k1sul1/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-17T11:18:18Z","updated_at":"2016-07-18T08:05:33Z","closed_at":"2016-07-18T07:52:13Z","pull_request":{"url":"https://api.github.com/repos/anttiviljami/wp-libre-form/pulls/7","html_url":"https://github.com/anttiviljami/wp-libre-form/pull/7","diff_url":"https://github.com/anttiviljami/wp-libre-form/pull/7.diff","patch_url":"https://github.com/anttiviljami/wp-libre-form/pull/7.patch"},"body":"I was bored and I need the support for file uploads pretty soon, so I added it.\r\n\r\nBecause $.post is unable to send files, I ditched jQuery and used fetch instead. Necessary polyfills (fetch & promises) are included on the top of wplf-form.js, but this still needs some testing. I was able to succesfully submit a form and receive the thank you message, but IE, Edge, Firefox & Safari are currenly untested. \r\n\r\nEverything should work out of the box, but it never hurts to be careful. "},"comment":{"url":"https://api.github.com/repos/anttiviljami/wp-libre-form/issues/comments/233261448","html_url":"https://github.com/anttiviljami/wp-libre-form/pull/7#issuecomment-233261448","issue_url":"https://api.github.com/repos/anttiviljami/wp-libre-form/issues/7","id":233261448,"user":{"login":"anttiviljami","id":6105650,"avatar_url":"https://avatars.githubusercontent.com/u/6105650?v=3","gravatar_id":"","url":"https://api.github.com/users/anttiviljami","html_url":"https://github.com/anttiviljami","followers_url":"https://api.github.com/users/anttiviljami/followers","following_url":"https://api.github.com/users/anttiviljami/following{/other_user}","gists_url":"https://api.github.com/users/anttiviljami/gists{/gist_id}","starred_url":"https://api.github.com/users/anttiviljami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anttiviljami/subscriptions","organizations_url":"https://api.github.com/users/anttiviljami/orgs","repos_url":"https://api.github.com/users/anttiviljami/repos","events_url":"https://api.github.com/users/anttiviljami/events{/privacy}","received_events_url":"https://api.github.com/users/anttiviljami/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T08:05:33Z","updated_at":"2016-07-18T08:05:33Z","body":"Right now it just writes the attachment post id in the custom field. For a better user experience, I would suggest we save the url to the uploaded file as one meta field and the attachment id as another. Maybe something like\r\n\r\n<fieldname> => https://mysite.com/wp-content/uploads/2016/07/uploaded.png\r\n<fieldname>_attachment => 123"}}
{"actor":{"display_login":"anttiviljami"}}