{"action":"created","issue":{"url":"https://api.github.com/repos/servocoder/RichFilemanager/issues/27","repository_url":"https://api.github.com/repos/servocoder/RichFilemanager","labels_url":"https://api.github.com/repos/servocoder/RichFilemanager/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/servocoder/RichFilemanager/issues/27/comments","events_url":"https://api.github.com/repos/servocoder/RichFilemanager/issues/27/events","html_url":"https://github.com/servocoder/RichFilemanager/issues/27","id":170127094,"number":27,"title":"createPreviewUrl dynamic path and normalize path bug","user":{"login":"gmkll","id":724941,"avatar_url":"https://avatars.githubusercontent.com/u/724941?v=3","gravatar_id":"","url":"https://api.github.com/users/gmkll","html_url":"https://github.com/gmkll","followers_url":"https://api.github.com/users/gmkll/followers","following_url":"https://api.github.com/users/gmkll/following{/other_user}","gists_url":"https://api.github.com/users/gmkll/gists{/gist_id}","starred_url":"https://api.github.com/users/gmkll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmkll/subscriptions","organizations_url":"https://api.github.com/users/gmkll/orgs","repos_url":"https://api.github.com/users/gmkll/repos","events_url":"https://api.github.com/users/gmkll/events{/privacy}","received_events_url":"https://api.github.com/users/gmkll/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/servocoder/RichFilemanager/milestones/1","html_url":"https://github.com/servocoder/RichFilemanager/milestones/1.1.0","labels_url":"https://api.github.com/repos/servocoder/RichFilemanager/milestones/1/labels","id":1944159,"number":1,"title":"1.1.0","description":"","creator":{"login":"servocoder","id":1310273,"avatar_url":"https://avatars.githubusercontent.com/u/1310273?v=3","gravatar_id":"","url":"https://api.github.com/users/servocoder","html_url":"https://github.com/servocoder","followers_url":"https://api.github.com/users/servocoder/followers","following_url":"https://api.github.com/users/servocoder/following{/other_user}","gists_url":"https://api.github.com/users/servocoder/gists{/gist_id}","starred_url":"https://api.github.com/users/servocoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/servocoder/subscriptions","organizations_url":"https://api.github.com/users/servocoder/orgs","repos_url":"https://api.github.com/users/servocoder/repos","events_url":"https://api.github.com/users/servocoder/events{/privacy}","received_events_url":"https://api.github.com/users/servocoder/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":0,"state":"open","created_at":"2016-08-16T05:58:10Z","updated_at":"2016-08-16T07:20:31Z","due_on":"2016-08-31T00:00:00Z","closed_at":null},"comments":2,"created_at":"2016-08-09T09:56:50Z","updated_at":"2016-08-17T16:23:24Z","closed_at":null,"body":"Cft [comment](https://github.com/servocoder/RichFilemanager/issues/18#issuecomment-238501694) in #18. "},"comment":{"url":"https://api.github.com/repos/servocoder/RichFilemanager/issues/comments/240466330","html_url":"https://github.com/servocoder/RichFilemanager/issues/27#issuecomment-240466330","issue_url":"https://api.github.com/repos/servocoder/RichFilemanager/issues/27","id":240466330,"user":{"login":"servocoder","id":1310273,"avatar_url":"https://avatars.githubusercontent.com/u/1310273?v=3","gravatar_id":"","url":"https://api.github.com/users/servocoder","html_url":"https://github.com/servocoder","followers_url":"https://api.github.com/users/servocoder/followers","following_url":"https://api.github.com/users/servocoder/following{/other_user}","gists_url":"https://api.github.com/users/servocoder/gists{/gist_id}","starred_url":"https://api.github.com/users/servocoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/servocoder/subscriptions","organizations_url":"https://api.github.com/users/servocoder/orgs","repos_url":"https://api.github.com/users/servocoder/repos","events_url":"https://api.github.com/users/servocoder/events{/privacy}","received_events_url":"https://api.github.com/users/servocoder/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T16:23:24Z","updated_at":"2016-08-17T16:23:24Z","body":"Great, thanks.\r\nWhat is your case with preview url?\r\n\r\n1) The idea is to make strict separation of front and back parts, so if your connertor is on server1 and the frontend in on server2 this way won't work. So `createPreviewUrl` function is intended to create url like http://site.com?mode=\"readfile\"... to connector and you have to handle it.\r\n\r\n2) Some previewers aren't work with relative paths, Google Viewer for sure, perhaps Pdf Viewer as well.\r\n\r\nSo the only right way fot any connector is to implement \"readfile\" method, which reads file and outputs its content."}}
{"actor":{"display_login":"servocoder"}}