The provided value 'undefined' is not a valid enum value of type XMLHttpRequestResponseType

I’m having a problem to upload my profile image in my application, and I can’t figure out why.

I published to my images collection and subscribe to it and still nothing happens.

Here’s the javascript code:

'change .PicInput': function(evt, template){
        FS.Utility.eachFile(evt, function(file){
            Images.insert(file, function(err, fileObj){
                    throw new error(err.reason, "danger", "growl-top-right")
                    var userId = Meteor.userId();
                    var imageURL = {
                        "profile.image": "cfs/files/images" + fileObj._id
                    Meteor.users.update(userId, {$set: imageURL});

Which package are you using for file uploads?
What is the full error message with stack trace?

cfs:standard-packages , cfs:gridfs and cfs:ui, I’ve alrealdy solve the problem, I needed to use the cfs:ui(It wasn’t downloaded when I posted this problem) to display the image. :stuck_out_tongue: