I’m trying to upload files like png to my aws s3 bucket,
on Client side I can manage to upload it successfully using aws-sdk package
however when I pass the file object down to server I receive {} empty object
You don’t need to send the file to the server unless you want to write it in your MongoDB which you shouldn’t do. It is possible but not efficient nor cheap. Client uploads directly to cloud storage.
I want to pass the file thats what i want to see, that when i console log the file it shows all attributes of the file just like on client side,
For me I want to understand the issue, why when i send a simple string it passes
To be frank I am not really sure what you want to send to the server. Your file object is a constructor, does not contain your actual file. While it is true that you have to pass an object to your Meteor method, I am not sure this is the right object.
Try something like this and see if you get your data: