Flask multi url in memory zip download with redirect
AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution
npx -y skills add ECNU-ICALK/AutoSkill --skill flask-multi-url-in-memory-zip-download-with-redirectAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
What its author says it does
Copied from the file, not written here
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.md
1.5 KB, as published. Nobody here has run it
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
- Accept a list of URLs as input (e.g., via JSON).
- Download the content from each URL.
- Zip the downloaded files together.
- Do not save files to a temporary folder or disk; process them in memory.
- Use
send_fileto send the zip file to the user's PC as an attachment. - After sending the file, redirect the user to a success page (e.g.,
success.html).
Anti-Patterns
- Do not use
os.makedirsor write files to a 'temp' directory. - Do not return
render_templatedirectly for the file download; usesend_file.
Triggers
- download multi file from multi url flask
- flask zip files in memory
- flask send file and redirect
- flask download without temp folder