{"action":"opened","issue":{"url":"https://api.github.com/repos/CruxFramework/crux-widgets/issues/371","labels_url":"https://api.github.com/repos/CruxFramework/crux-widgets/issues/371/labels{/name}","comments_url":"https://api.github.com/repos/CruxFramework/crux-widgets/issues/371/comments","events_url":"https://api.github.com/repos/CruxFramework/crux-widgets/issues/371/events","html_url":"https://github.com/CruxFramework/crux-widgets/issues/371","id":68490093,"number":371,"title":"Fix the broken image \"preview\" in FileUploader widget","user":{"login":"admtriggo","id":11163759,"avatar_url":"https://avatars.githubusercontent.com/u/11163759?v=3","gravatar_id":"","url":"https://api.github.com/users/admtriggo","html_url":"https://github.com/admtriggo","followers_url":"https://api.github.com/users/admtriggo/followers","following_url":"https://api.github.com/users/admtriggo/following{/other_user}","gists_url":"https://api.github.com/users/admtriggo/gists{/gist_id}","starred_url":"https://api.github.com/users/admtriggo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/admtriggo/subscriptions","organizations_url":"https://api.github.com/users/admtriggo/orgs","repos_url":"https://api.github.com/users/admtriggo/repos","events_url":"https://api.github.com/users/admtriggo/events{/privacy}","received_events_url":"https://api.github.com/users/admtriggo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CruxFramework/crux-widgets/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/CruxFramework/crux-widgets/labels/Component-Logic","name":"Component-Logic","color":"FFFFFF"},{"url":"https://api.github.com/repos/CruxFramework/crux-widgets/labels/Component-UI","name":"Component-UI","color":"FFFFFF"},{"url":"https://api.github.com/repos/CruxFramework/crux-widgets/labels/imported","name":"imported","color":"FFFFFF"},{"url":"https://api.github.com/repos/CruxFramework/crux-widgets/labels/Priority-Medium","name":"Priority-Medium","color":"FFFFFF"},{"url":"https://api.github.com/repos/CruxFramework/crux-widgets/labels/TargetVersion-5.1.1","name":"TargetVersion-5.1.1","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-14T20:36:13Z","updated_at":"2015-04-14T20:36:13Z","closed_at":null,"body":"_From [claudio....@cruxframework.org](https://code.google.com/u/102254381191677355567/) on May 23, 2014 14:46:05_\n\nWhat steps will reproduce the problem? 1. Access FileUploader page at showcase5.cruxframework.org\r\n2. Select a file other than an image What is the expected output? What do you see instead? If there is no way to generate a preview because of file format, it should output a fallback image (like a \"?\"). Instead is just trying to generate an image from the file which lead to a broken base64 and broken image.\r\n\r\nWhat version of the product are you using? On what operating system? On\r\nwhat Browser?\r\nCrux 5.1\r\n\r\nPlease provide any additional information below.\r\n\r\nA good idea would be the addition of a styleName like 'unknown' or 'no-preview' if the file can't have a preview. Then use CSS to show a default image instead.\n\n_Original issue: http://code.google.com/p/crux-framework/issues/detail?id=371_"}}