<a href="files/doc_downloads/governance_docs/Whistleblower_and_Complaint_Policy.pdf" target="_blank" class="ModuleHeadlineLink">
<span class="ModuleHeadline">Whistleblower and Complaint Policy</span> filesize
</a>
Asked
Active
Viewed 4,050 times
0

guradio
- 15,524
- 4
- 36
- 57

user7364147
- 11
- 1
- 1
-
http://stackoverflow.com/a/1440804/1719752 – Milind Anantwar Apr 03 '17 at 07:18
1 Answers
1
Not sure about your application in details but I have written a small one for my application to get the file size without downloading :
var req;
req = $.ajax({
type: "HEAD",
url: $("#url").val(),
success: function () {
alert("Size is " + request.getResponseHeader("Content-Length"));
}
});
Hope this helps.

Ria Sen
- 94
- 13
-
4
-
-
5Just because it's in your github, doesn't mean you wrote it. If that's how it works, I'm the author of jQuery and Wordpress – Rory McCrossan Apr 03 '17 at 07:21
-
1