Get file size, by passing the file url?

I want to upload file on server (Image/ Video). But before that I want to check the file size using that file URL. I also follow this code but its not helps me in my project :frowning: . It not recognised this.files[0].size this. My requirement is get the file size using the file URL. (Note same question I will post on Stack overflow)