The file.name property is an inbuilt function of file WebAPI which gives the size of a file in bytes.
var size = instanceOfFile.size;
Return Value: It returns a number, containing the size of the file in bytes.
Supported Browsers: The browser supported by WebAPI File.name property are listed below:
- Google Chrome
- Internet Explorer