{"version":"2.1.318","anchor":"download-response-records-the-stated-content-length","canonical_anchor":"download-response-records-the-stated-content-length","heading":"File downloads now record the size the server says the file is","tier":"internal","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.318\/e\/download-response-records-the-stated-content-length","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.318","markdown":"### File downloads now record the size the server says the file is\n\nWhen Claude Code downloads a file, it now notes the size the server reported, so a download that arrives short can be spotted\n\n**What**\n\nWhen Claude Code downloads a file, the result now also records the size the server says the file is. It records this only in two cases together:\n\n- the response is not compressed (it carries no content-encoding header)\n\n- the stated length is a plain whole number\n\nPreviously the result held only the downloaded data and a page count.\n\n**Why**\n\nKnowing the size the server promised makes it possible to tell when a download came back shorter than it should. That helps catch file reads that were cut off partway.\n\n- Area: Elsewhere\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}