in reply to Display file size during download

It surely uses the value from the HTTP Content-Length header.

Replies are listed 'Best First'.
Re^2: Display file size during download
by PerlRob (Sexton) on Jun 06, 2008 at 02:49 UTC
    I thought that might be the case, so I modified my code as follows, also to no avail:
    print "Content-Type:application/octet-stream;name=$file\n"; print "Content-Length:$size\n"; print "Content-Disposition:attachment;filename=$file\n\n"; print @container;
    What else am I missing here?