#What's the best way to download remote content and store it locally?
3 messages · Page 1 of 1 (latest)
Hi @eternal crystal. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
The knowledge sources only describe how Astro uses local vs. remote images; they do not describe any built‑in way to download remote images and persist them locally, nor any integration of such a workflow with content collections. [Images guide]
From the docs:
- Astro can:
- Use local images from
src/(optimized) orpublic/(served as‑is). [Images guide] - Use remote images directly by URL, and can process them if they are from authorized remote sources. [Images guide]
- Use local images from
- But there is no mention of:
- A built‑in “download and cache remote images to disk” feature.
- A content‑collections API that automatically fetches remote images and stores them locally.
So, based on the available docs, Astro expects you to either:
- Keep images remote and let Astro process them (if authorized), or
- Manually place images in
src/orpublic/if you want them treated as local. [Images guide]