Right-click to create an empty doc document. After uploading using input file, why is size not equal to 0?

right-click to create an empty doc document. After uploading using input file, the size is greater than 0. How can I tell if this is an empty document? Isn"t the document created in this way actually an empty document?

clipboard.png

May.27,2022

see for yourself how big your doc is


empty documents and do not upload files are two different concepts. How can this be confused.

FileReader can read local files, and you can read them and then determine whether this is an empty document.

FileReader | MDN

Menu