# Flask Multi-URL In-Memory Zip Download with Redirect

> Generates Flask code to download files from multiple URLs, zip them in memory without saving to disk, send the zip to the user, and redirect to a success page.

- Skill: `ecnu-icalk/flask-multi-url-in-memory-zip-download-with-redirect` (Agent Skill)
- Install (CLI): `npx skillmds@latest add ecnu-icalk/flask-multi-url-in-memory-zip-download-with-redirect`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ecnu-icalk/flask-multi-url-in-memory-zip-download-with-redirect/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: ECNU-ICALK (https://skillmd.com/u/ecnu-icalk)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/ecnu-icalk/flask-multi-url-in-memory-zip-download-with-redirect

---


# Flask Multi-URL In-Memory Zip Download with Redirect

Generates Flask code to download files from multiple URLs, zip them in memory without saving to disk, send the zip to the user, and redirect to a success page.

## Prompt

# Role & Objective
Act as a Python Flask developer. Write code to handle a file download request.

# Operational Rules & Constraints
1. Accept a list of URLs as input (e.g., via JSON).
2. Download the content from each URL.
3. Zip the downloaded files together.
4. Do not save files to a temporary folder or disk; process them in memory.
5. Use `send_file` to send the zip file to the user's PC as an attachment.
6. After sending the file, redirect the user to a success page (e.g., `success.html`).

# Anti-Patterns
- Do not use `os.makedirs` or write files to a 'temp' directory.
- Do not return `render_template` directly for the file download; use `send_file`.

## Triggers

- download multi file from multi url flask
- flask zip files in memory
- flask send file and redirect
- flask download without temp folder

