{"action":"opened","issue":{"url":"https://api.github.com/repos/keystonejs/keystone/issues/1108","labels_url":"https://api.github.com/repos/keystonejs/keystone/issues/1108/labels{/name}","comments_url":"https://api.github.com/repos/keystonejs/keystone/issues/1108/comments","events_url":"https://api.github.com/repos/keystonejs/keystone/issues/1108/events","html_url":"https://github.com/keystonejs/keystone/issues/1108","id":58811291,"number":1108,"title":"Uploaded Image Preview for LocalFiles (and AzureFiles)","user":{"login":"internetErik","id":4968225,"avatar_url":"https://avatars.githubusercontent.com/u/4968225?v=3","gravatar_id":"","url":"https://api.github.com/users/internetErik","html_url":"https://github.com/internetErik","followers_url":"https://api.github.com/users/internetErik/followers","following_url":"https://api.github.com/users/internetErik/following{/other_user}","gists_url":"https://api.github.com/users/internetErik/gists{/gist_id}","starred_url":"https://api.github.com/users/internetErik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/internetErik/subscriptions","organizations_url":"https://api.github.com/users/internetErik/orgs","repos_url":"https://api.github.com/users/internetErik/repos","events_url":"https://api.github.com/users/internetErik/events{/privacy}","received_events_url":"https://api.github.com/users/internetErik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-24T21:50:31Z","updated_at":"2015-02-24T21:50:31Z","closed_at":null,"body":"I have a project requirement to show a preview for images uploaded in the admin.  We are using AzureFiles.  I can get this working simply by swapping the CloudinaryImageField in for the LocalFileField in `fields/types/azurefile/AzureFileField.js`.\r\n\r\nI assume the reason AzureFile uses LocalFile instead of CloudinaryImage is that AzureFile and LocalFile could be file types other than image (e.g., docx).  This seems sane.  However, would there be interest in having preview support on LocalFile (and so AzureFile) if we could determine that it was an image file type?  What concerns would there be with doing this?\r\n\r\nCloudinaryImageField suggests there is support for these file types:\r\n`var SUPPORTED_TYPES = ['image/gif', 'image/png', 'image/jpeg', 'image/bmp', 'image/x-icon', 'application/pdf', 'image/x-tiff', 'image/x-tiff', 'application/postscript', 'image/vnd.adobe.photoshop'];`\r\n\r\nI would be happy to write a PR for this."}}