Return to Snippet

Revision: 39621
at January 19, 2011 05:49 by ezerick


Initial Code
var xhr = $.ajax({
  type: "HEAD",
  url: "path/to/file.ext",
  success: function(msg){
    alert(xhr.getResponseHeader('Content-Length') + ' bytes');
  }
});

Initial URL

                                

Initial Description

                                

Initial Title
Get size of file requested via ajax

Initial Tags

                                

Initial Language
jQuery