Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate when to send certain files as an attachment #42

Open
J-avery32 opened this issue Jul 21, 2020 · 0 comments
Open

Investigate when to send certain files as an attachment #42

J-avery32 opened this issue Jul 21, 2020 · 0 comments
Assignees

Comments

@J-avery32
Copy link
Collaborator

Flask says that certain files might need extra security:

By default it will try to guess the mimetype for you, but you can also explicitly provide one. For extra security you probably want to send certain files as attachment (HTML for instance). The mimetype guessing requires a filename or an attachment_filename to be provided.

https://flask.palletsprojects.com/en/1.1.x/api/#flask.send_file

I am unaware of when this applies but we should investigate it further.

@J-avery32 J-avery32 self-assigned this Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant