{"action":"created","issue":{"url":"https://api.github.com/repos/VeliovGroup/Meteor-Files/issues/107","repository_url":"https://api.github.com/repos/VeliovGroup/Meteor-Files","labels_url":"https://api.github.com/repos/VeliovGroup/Meteor-Files/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/VeliovGroup/Meteor-Files/issues/107/comments","events_url":"https://api.github.com/repos/VeliovGroup/Meteor-Files/issues/107/events","html_url":"https://github.com/VeliovGroup/Meteor-Files/issues/107","id":161178518,"number":107,"title":"Get Exif of image after upload and show error to user.","user":{"login":"felipesmendes","id":992965,"avatar_url":"https://avatars.githubusercontent.com/u/992965?v=3","gravatar_id":"","url":"https://api.github.com/users/felipesmendes","html_url":"https://github.com/felipesmendes","followers_url":"https://api.github.com/users/felipesmendes/followers","following_url":"https://api.github.com/users/felipesmendes/following{/other_user}","gists_url":"https://api.github.com/users/felipesmendes/gists{/gist_id}","starred_url":"https://api.github.com/users/felipesmendes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipesmendes/subscriptions","organizations_url":"https://api.github.com/users/felipesmendes/orgs","repos_url":"https://api.github.com/users/felipesmendes/repos","events_url":"https://api.github.com/users/felipesmendes/events{/privacy}","received_events_url":"https://api.github.com/users/felipesmendes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-06-20T11:56:33Z","updated_at":"2016-06-20T15:19:08Z","closed_at":null,"body":"I'm trying to get GPS information from image in afterUpload and if the imagem doesn't have GPS information I need to show one alert to user.\r\n\r\nHow can I do that?\r\n\r\nI'm trying something like this, but in 'end' event fileObj don't have latitude and longitude information like I set.\r\n```js\r\nonAfterUpload: function(fileRef) {\r\n    try {\r\n      new ExifImage({\r\n        image: fileRef.path\r\n      }, function(error, exifData) {\r\n        if (error) {\r\n          return 'Imagem without Information';\r\n        } else {\r\n          var latitude, longitude, infoGps ;\r\n          infoGps = exifData.gps;\r\n          if (infoGps ['GPSLatitudeRef'] == 'S') {\r\n            latitude = parseFloat(infoGps ['GPSLatitude'][0]) *\r\n              -1;\r\n          }\r\n          if (infoGps ['GPSLongitudeRef'] == 'W') {\r\n            longitude = parseFloat(infoGps ['GPSLongitude'][0]) *\r\n              -1;\r\n          }\r\n          if ((latitude === '' || latitude === undefined) && (\r\n              longitude ==='' || longitude === undefined)) {\r\n            return 'Imagem without Information of GPS';\r\n          }\r\n          fileRef.latitude = latitude;\r\n          fileRef.longitude = longitude;\r\n        }\r\n      });\r\n    } catch (error) {\r\n      return 'Image without Information';\r\n    }\r\n    return fileRef;\r\n  }\r\n```"},"comment":{"url":"https://api.github.com/repos/VeliovGroup/Meteor-Files/issues/comments/227174083","html_url":"https://github.com/VeliovGroup/Meteor-Files/issues/107#issuecomment-227174083","issue_url":"https://api.github.com/repos/VeliovGroup/Meteor-Files/issues/107","id":227174083,"user":{"login":"dr-dimitru","id":1686778,"avatar_url":"https://avatars.githubusercontent.com/u/1686778?v=3","gravatar_id":"","url":"https://api.github.com/users/dr-dimitru","html_url":"https://github.com/dr-dimitru","followers_url":"https://api.github.com/users/dr-dimitru/followers","following_url":"https://api.github.com/users/dr-dimitru/following{/other_user}","gists_url":"https://api.github.com/users/dr-dimitru/gists{/gist_id}","starred_url":"https://api.github.com/users/dr-dimitru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dr-dimitru/subscriptions","organizations_url":"https://api.github.com/users/dr-dimitru/orgs","repos_url":"https://api.github.com/users/dr-dimitru/repos","events_url":"https://api.github.com/users/dr-dimitru/events{/privacy}","received_events_url":"https://api.github.com/users/dr-dimitru/received_events","type":"User","site_admin":false},"created_at":"2016-06-20T15:19:08Z","updated_at":"2016-06-20T15:19:08Z","body":"Sorry, nope, for this I need to know API of ExifImage.\r\nI gave you a link to good tutorial, use it please."}}
{"actor":{"display_login":"dr-dimitru"}}