Get file size

FireFox Add comments

I have created a ‘Get File Size’ plugin for FireFox. It’s public.

Example screen

This simple plugin creates a HEAD request to the URL you clicked and alerts the size of the file – the value of ‘Content-Length’ header.

22 Responses to “Get file size”

  1. d2038 Says:

    how it works??

  2. Skakunov Alexander Says:

    As I said, plugin creates a HEAD request to the URL you clicked and alerts the size of the file – the value of ‘Content-Length’ header. Actually the plugin creates a new item in context menu you can see clicking a link.

  3. lexder Says:

    Is it possible to add one more option in “Get file size” – view the info about the date of file (’Last-Modified’ header)?

  4. chewi Says:

    Is it possible to show also date/time of file (’Last-Modified’ header) in your Firefox extension?

  5. Vas Says:

    pls!

  6. Nick Says:

    Please, update this thing for FF 3.0.1 and up.

  7. Skakunov Alexander Says:

    Added Last-Modified contents display.
    Added support of 3.0.*

    Enjoy :]

  8. jep! Says:

    plz add MD5 info! (extremely useful for file checking)

  9. Skakunov Alexander Says:

    plz add MD5 info! (extremely useful for file checking)

    I think it’s out of scope of this plugin.

  10. Jep! Says:

    > plz add MD5 info! (extremely useful for file checking)

    >> I think it’s out of scope of this plugin.

    Also, i guess for the MD5 info the file must be completely downloaded first to check unlike the Last-Modified info where only a little piece of header will be fetched. Alexander, am i right in this context?

  11. Skakunov Alexander Says:

    Alexander, am i right in this context?

    Yes, you hit the bull’s eye :]

  12. jep! Says:

    > Yes, you hit the bull’s eye :]

    hahaha… i like your humor :]
    Thanks

  13. Skakunov Alexander Says:

    Plugin becomes public and finally leaves the Sandbox! Yeah!

  14. markh Says:

    Please make en-US the default language on the AMO page. It currently displays in Russian which is not readable for every visitor ;)

  15. chewi Says:

    Версия 1.93
    Плагин не может определить размер файлов по некоторым ссылкам (например, на этой странице – http://www.blitwise.com/downloads.html), причем окошко с предупреждением не появляется – видимо пытается выкачать весь файл, приходиться закрывать браузер для прерывания процесса. Думается, неплохо бы добавить возможность пользователям устанавливать определенный timeout для запроса на определение размера файла (например, после 10 сек прерывать попытку определения размера/даты с выведение соотв. сообщения).

  16. forcob Says:

    Очень нужное и полезное дополнение. Но возникла проблема: для FF 3.0.3 сообщает адрес ссылки, но всегда выдает фразу: “Размер файла узнать не удалось. Увы!” Что нужно сделать?

  17. Skakunov Alexander Says:

    2 forcob: спасибо, я старался!

    В таких случаях нам с вами сделать ничего не удастся, т.к. от удаленного сервера зависит, отдает ли он HTTP-заголовок с размером файла или нет (Content-Length). Большинство серверов отдают, на них и расчитан этот плагин.

  18. Skakunov Alexander Says:

    2 markh: you are right! I have changed the link in this post, so that it lead to en-US page.

  19. relation Says:

    Bug : Referrer
    If you try to get the file size of this link http://downloads.acdsystems.com/en/acdsee.exe with “get file size” extension instead of getting the file size this tool downloads the whole file to get its size. (I stopped it before completing its fault.)

    Analysis:
    Since the above mentioned link is only a referrer to the real file on the server (as of now this: http://files.acdsystems.com/english/installers/acdsee2009-11-0-85-en.exe) this tool can’t recognize it and tries to get the whole file instead of just the header of that referred file.
    __________
    End Note:
    You should really set a check never to download the real file in any case like the above mentioned bug (it wastes the bandwidth since even the file isn’t saved in fact)

    By the way there is a freeware tool that is worth mentioning and you might be get inspired from it: REL link checker : http://www.relsoftware.com/rlc/downloads/

  20. traveller Says:

    Давно пользуюсь этим расширением, очень нравится. Однако, только что хотел узнать размер файла, при этом некоторое время плагин думал, а потом все-таки выдал размер. Но самое главно, что траффика набежало ровно столько, сколько весит файл. Огорчило =(

  21. bratan Says:

    да, блин, часто на то чтоб узнать размер, трафа уходит столько же и почему-то иногда даже больше. :)
    вообщем нафих.

  22. fiertiext Says:

    Работаю менеджером. Хочу сделать интернет магазин. Порекомендуйте человека или организацию, кто поможет мне в этом. Главное чтоб человек, который его делает был адекватный и недорого.

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in