{"action":"created","issue":{"url":"https://api.github.com/repos/jaydenseric/apollo-upload-client/issues/14","repository_url":"https://api.github.com/repos/jaydenseric/apollo-upload-client","labels_url":"https://api.github.com/repos/jaydenseric/apollo-upload-client/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/jaydenseric/apollo-upload-client/issues/14/comments","events_url":"https://api.github.com/repos/jaydenseric/apollo-upload-client/issues/14/events","html_url":"https://github.com/jaydenseric/apollo-upload-client/issues/14","id":237138202,"number":14,"title":"Accessing the uploaded files","user":{"login":"aylabyuk","id":6472022,"avatar_url":"https://avatars2.githubusercontent.com/u/6472022?v=3","gravatar_id":"","url":"https://api.github.com/users/aylabyuk","html_url":"https://github.com/aylabyuk","followers_url":"https://api.github.com/users/aylabyuk/followers","following_url":"https://api.github.com/users/aylabyuk/following{/other_user}","gists_url":"https://api.github.com/users/aylabyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/aylabyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aylabyuk/subscriptions","organizations_url":"https://api.github.com/users/aylabyuk/orgs","repos_url":"https://api.github.com/users/aylabyuk/repos","events_url":"https://api.github.com/users/aylabyuk/events{/privacy}","received_events_url":"https://api.github.com/users/aylabyuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-20T08:55:49Z","updated_at":"2017-06-20T09:05:31Z","closed_at":null,"body":"This is more of a question. \r\n\r\nI can successfully upload files to a directory in the server but I do not know how to retrieve it. What is the proper way to do it? Is there an implementation for accessing files through graphql queries or do I have to create another endpoint for accessing files or images? \r\n\r\nI have tried running Filereader on the client code after accessing the static files but no luck.. the file is not in a jpg format."},"comment":{"url":"https://api.github.com/repos/jaydenseric/apollo-upload-client/issues/comments/309691926","html_url":"https://github.com/jaydenseric/apollo-upload-client/issues/14#issuecomment-309691926","issue_url":"https://api.github.com/repos/jaydenseric/apollo-upload-client/issues/14","id":309691926,"user":{"login":"jaydenseric","id":1754873,"avatar_url":"https://avatars3.githubusercontent.com/u/1754873?v=3","gravatar_id":"","url":"https://api.github.com/users/jaydenseric","html_url":"https://github.com/jaydenseric","followers_url":"https://api.github.com/users/jaydenseric/followers","following_url":"https://api.github.com/users/jaydenseric/following{/other_user}","gists_url":"https://api.github.com/users/jaydenseric/gists{/gist_id}","starred_url":"https://api.github.com/users/jaydenseric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaydenseric/subscriptions","organizations_url":"https://api.github.com/users/jaydenseric/orgs","repos_url":"https://api.github.com/users/jaydenseric/repos","events_url":"https://api.github.com/users/jaydenseric/events{/privacy}","received_events_url":"https://api.github.com/users/jaydenseric/received_events","type":"User","site_admin":false},"created_at":"2017-06-20T09:05:31Z","updated_at":"2017-06-20T09:05:31Z","body":"This depends a little on the API you want in regards to auth, thumbnailing, etc.\r\n\r\nI my current app, the uploaded file gets uploaded to MongoDB GridFS in the cloud. I have a seperate `/files/:fileId` route on the API server that is responsible for serving requested files. In my GraphQL schema, files belonging to types (invoices in my case) have a `path`, or `uri` property for the client to use.\r\n\r\nIn my previous app, I built a thumbnailing GraphQL API. You can read the discussion about it [here](https://github.com/jaydenseric/apollo-upload-server/issues/1#issuecomment-287502933)."}}
{"actor":{"display_login":"jaydenseric"}}