document.fileSize Browser Support
Does any browser other than IE support document.fileSize, or the equivelant?
http://msdn.microsoft.c开发者_如何学编程om/en-us/library/ms533752(v=VS.85).aspx
document.fileSize
is an IE-only extension: https://developer.mozilla.org/en/DOM/document. In other browsers, you could re-fetch an object with XHR and examine the Content-Length
header of the response.
精彩评论