How to know the size of a file before downloading it?

7,146

Solution 1

When you download a file without seeing the final file size, then the server side is actually not sending this information along with the file that you're downloading.

As a programmer sometimes I do not know the final file size because I create the download results on the fly, and the only way to know it before sending it, is to save it locally first, gzip and then measure the size.

To me if the downloaded file is not showing the final file size, the only way to know it is to first download it.

Solution 2

You can use FreeDownloadmanager. When you add a dowload you can get the size of the file:

enter image description here

In your case the driver is 339MB. When you've already added the file to the Freedownloadmanager list you can select them and press SHIFT+Q to get the size.

Share:
7,146

Related videos on Youtube

GNT
Author by

GNT

Updated on September 18, 2022

Comments

  • GNT
    GNT over 1 year

    I'm on Windows 7. How to know the size of a file before downloading it?

    I have Chrome, Firefox and Orbit downloaders. Sometimes they don't show the file size of a download no matter what, for example none of them are showing the file size of this driver

    Is there a command prompt command to show the file or something?

    my question is exactly like this one but on Windows.

    • hjpotter92
      hjpotter92 almost 11 years
      Both IDM and Opera seemed to show the size for me. Will try IE too ;-)
    • GNT
      GNT almost 11 years
      @hjpotter92 would you please tell me the size? :)
    • Karan
      Karan almost 11 years
      @Fischer: The answer to the other question uses curl. You can too.
    • GNT
      GNT almost 11 years
      @Karan curl on windows? never tried it, i'll try now :)
    • Karan
      Karan almost 11 years
      Yeah, I use curl and wget regularly on Windows.
    • hjpotter92
      hjpotter92 almost 11 years
      338.94 MiB