{"action":"created","issue":{"url":"https://api.github.com/repos/1up-lab/OneupUploaderBundle/issues/187","labels_url":"https://api.github.com/repos/1up-lab/OneupUploaderBundle/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/1up-lab/OneupUploaderBundle/issues/187/comments","events_url":"https://api.github.com/repos/1up-lab/OneupUploaderBundle/issues/187/events","html_url":"https://github.com/1up-lab/OneupUploaderBundle/issues/187","id":107367685,"number":187,"title":"List of files uploaded ","user":{"login":"wajaja","id":10998106,"avatar_url":"https://avatars.githubusercontent.com/u/10998106?v=3","gravatar_id":"","url":"https://api.github.com/users/wajaja","html_url":"https://github.com/wajaja","followers_url":"https://api.github.com/users/wajaja/followers","following_url":"https://api.github.com/users/wajaja/following{/other_user}","gists_url":"https://api.github.com/users/wajaja/gists{/gist_id}","starred_url":"https://api.github.com/users/wajaja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wajaja/subscriptions","organizations_url":"https://api.github.com/users/wajaja/orgs","repos_url":"https://api.github.com/users/wajaja/repos","events_url":"https://api.github.com/users/wajaja/events{/privacy}","received_events_url":"https://api.github.com/users/wajaja/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-20T02:44:03Z","updated_at":"2015-10-09T08:56:26Z","closed_at":null,"body":"Hey;\r\n\r\nI have a problem in my EventListener;\r\nuploaded files are in the following directory. \\web\\uploads\\gallery\r\nbut I do not seem to get the list of uploaded files and their respective names in my EventListener\r\n\r\nhere is my eventlistener.php file\r\n\r\n//...\r\nclass UploadListener\r\n{\r\n    public function __construct($doctrine)\r\n    {\r\n        $this->doctrine = $doctrine;\r\n    }\r\n\r\n    public function onUpload(PostPersistEvent $event)\r\n    {\r\n        $file = $event->getFile();\r\n        //For image type\r\n        \r\n        $image = new Image();\r\n        $image->setUrl($file->getPathName());\r\n\r\n        \r\n        $em = $this->getDoctrine()->getManager();\r\n        $em->persist($image);\r\n        $em->flush();\r\n        \r\n        //...\r\n        "},"comment":{"url":"https://api.github.com/repos/1up-lab/OneupUploaderBundle/issues/comments/146805064","html_url":"https://github.com/1up-lab/OneupUploaderBundle/issues/187#issuecomment-146805064","issue_url":"https://api.github.com/repos/1up-lab/OneupUploaderBundle/issues/187","id":146805064,"user":{"login":"ahmetalsan","id":271901,"avatar_url":"https://avatars.githubusercontent.com/u/271901?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmetalsan","html_url":"https://github.com/ahmetalsan","followers_url":"https://api.github.com/users/ahmetalsan/followers","following_url":"https://api.github.com/users/ahmetalsan/following{/other_user}","gists_url":"https://api.github.com/users/ahmetalsan/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmetalsan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmetalsan/subscriptions","organizations_url":"https://api.github.com/users/ahmetalsan/orgs","repos_url":"https://api.github.com/users/ahmetalsan/repos","events_url":"https://api.github.com/users/ahmetalsan/events{/privacy}","received_events_url":"https://api.github.com/users/ahmetalsan/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T08:56:26Z","updated_at":"2015-10-09T08:56:26Z","body":"yes i need to get uploaded files too"}}