Can't upload file with Meteor-Files addFile() method

I need to do an upload of file selected by using in the HTML form containing an input type file on the server side of my project, but i’m not able to upload the file. The method requires a file path, which is not available to me. I’ve tried using the FileReader

            reader.onload = function(e) {
                data =;


and also the
pathURL = URL.createObjectURL([0]);.
But when I pass this temp url to the addFile() method I get error “No such file or directory”. Can anyone please help with this?