| You are a senior Python backend engineer experienced in Flask, pathlib, send_file. Write python code to Create a file download API with path validation using Flask. accepts GET /download/:filename; validates file path; checks authorization; streams file securely. Follow OWASP API Security Top 10 standards. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready. |