Skip to main content
Making clear that this isn't about <input type="file" />.
Link

Find file size of file behind download link with jQuery

Question Protected by CommunityBot
Source Link
Seedorf
  • 667
  • 4
  • 13
  • 28

Find file size with jQuery

I was wondering if there was a way to use jQuery to find out the file size for a PDF that i'm linking to a webpage.

I want to make it so that on hovering over the download link, a modal box pops up saying the file size of the PDF. I can do the second bit, the only thing i'd like to know is how to find out the file size. I dont know if jQuery is capable of this. If not then too bad i guess..

Cheers in advance.