From: John Joyce Date: 2007-07-09T22:32:22+09:00 Subject: Re: Get file size before download (noobish question) On Jul 9, 2007, at 3:31 AM, Taras Koval wrote: > Guest wrote: >> Hi, >> >> so the subject implies what i want to do, get the file size before >> downloading. i've seen posts about downloading the header, so if >> possible, could someone give an example of this code??? >> >> also, for files without a header, i tried using :content_length_proc >> within the open-uri class, but it would seem that the file is being >> downloaded, then tested for size (from the difference in time for >> running my code) >> >> so if someone has any ideas as to getting filesize of a file (mp3 >> specifically) without a header... please help! >> >> > That is not possible! > If you can ask the system the file is stored on, you can get its file size.