Get doc file size by its device path in JavaScript (ionic 1)

I am making a file uploading functionality for iOS cordova App(angular+ionic) using file picker (for getting picked file’s path from iCloud) plugin and file transfer plugin (for File uploading to server). I have doc file’s path on iCloud, but I want to fetch file’s size also using JavaScript by its path without uploading (i.e service hit).

I tried few other plugin also but not able to get file’s size. How can we get file’s size without any service hit from front end (using JavaScript)?

http://www.encodedna.com/jquery/get-file-size-before-uploading-using-javascript-and-jquery.htm