how to measure file size using script node

I’m uploading an attachment/file through Entity node, can we write a script node where we can measure the file size that has been uploaded?