You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first image was uploaded using the following code:
varimage=event.target.files[0];UserProfilePicture.insert(image,function(err,fileObj){if(err){// TODO: Show pretty message to the clientconsole.log(err);}else{varuserId=Meteor.userId();varimageId={'profile.image': fileObj._id};Meteor.users.update(userId,{$set: imageId});}});
The second image was uploaded in the following way:
varfile=event.target.files[0];processImage(file,300,300,function(data){console.log("processed image");varimage;image=newFS.File(data);image.metadata={date: Date.now(),ownerId: Meteor.userId()};UserProfilePicture.insert(image,function(err,fileObj){if(err){// TODO: Show pretty message to the clientconsole.log(err);}else{varuserId=Meteor.userId();varimageId={'profile.image': fileObj._id};Meteor.users.update(userId,{$set: imageId});}});});
As you can see, the second image (using your package) is missing the file type. Any idea?
Btw: If I open the image with paint it is still displayed as an image and the browser is able to display it aswell
The text was updated successfully, but these errors were encountered:
The first image was uploaded using the following code:
The second image was uploaded in the following way:
As you can see, the second image (using your package) is missing the file type. Any idea?
Btw: If I open the image with paint it is still displayed as an image and the browser is able to display it aswell
The text was updated successfully, but these errors were encountered: