{"action":"opened","issue":{"url":"https://api.github.com/repos/CFDan/Redactor-10-clipboardPaste-plugin/issues/1","labels_url":"https://api.github.com/repos/CFDan/Redactor-10-clipboardPaste-plugin/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/CFDan/Redactor-10-clipboardPaste-plugin/issues/1/comments","events_url":"https://api.github.com/repos/CFDan/Redactor-10-clipboardPaste-plugin/issues/1/events","html_url":"https://github.com/CFDan/Redactor-10-clipboardPaste-plugin/issues/1","id":73565612,"number":1,"title":"php server script to handle uploaded image","user":{"login":"jza80","id":6177910,"avatar_url":"https://avatars.githubusercontent.com/u/6177910?v=3","gravatar_id":"","url":"https://api.github.com/users/jza80","html_url":"https://github.com/jza80","followers_url":"https://api.github.com/users/jza80/followers","following_url":"https://api.github.com/users/jza80/following{/other_user}","gists_url":"https://api.github.com/users/jza80/gists{/gist_id}","starred_url":"https://api.github.com/users/jza80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jza80/subscriptions","organizations_url":"https://api.github.com/users/jza80/orgs","repos_url":"https://api.github.com/users/jza80/repos","events_url":"https://api.github.com/users/jza80/events{/privacy}","received_events_url":"https://api.github.com/users/jza80/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-06T09:10:54Z","updated_at":"2015-05-06T09:10:54Z","closed_at":null,"body":"Many thanks for your plugin, you save my day :-)\r\n\r\nif you like, you can add my short php sniplet, as example to handle your upload.\r\n\r\nThank you\r\nDaniel\r\n\r\n<?php\r\n$dir = \"/your_folder/\";             // make sure that php have write permission!\r\n\r\n$contentType = $_POST['contentType'];\r\n$data              = base64_decode($_POST['data']);\r\n        \r\n$filename = md5(date('YmdHis')) . '.png';\r\nfile_put_contents($dir . $filename, $data);\r\n        \r\necho json_encode(array('filelink' => $file));\r\n?>"}}