Fix to #154 - Group and profile pic not uploading on Firefox
This commit is contained in:
parent
29c557f8e7
commit
7668d92616
@ -949,7 +949,7 @@ angular.module('myApp.controllers', [])
|
||||
$scope.$watch('photo.file', onPhotoSelected);
|
||||
|
||||
function onPhotoSelected (photo) {
|
||||
if (!photo || !photo.hasOwnProperty('name')) {
|
||||
if (!photo || !photo.type || photo.type.indexOf('image') !== 0) {
|
||||
return;
|
||||
}
|
||||
$scope.photo.updating = true;
|
||||
@ -1014,7 +1014,7 @@ angular.module('myApp.controllers', [])
|
||||
$scope.$watch('photo.file', onPhotoSelected);
|
||||
|
||||
function onPhotoSelected (photo) {
|
||||
if (!photo || !photo.hasOwnProperty('name')) {
|
||||
if (!photo || !photo.type || photo.type.indexOf('image') !== 0) {
|
||||
return;
|
||||
}
|
||||
$scope.photo.updating = true;
|
||||
|
Loading…
Reference in New Issue
Block a user