CODEFOSSIL · flask
send_file
function in src/flask/helpers.py:417 · Born 2010-05-10 (DERIVED, confidence 0.90)
Copied here from flask.py; its history is followed back to where it was born.
Changed explain seek
d318b68· David LordChanged relax type hint for bytes io
d44f1c6· Tero VuotilaChanged type hint fix for flask.send_file
4104f29· Daniel IsaacChanged remove deprecated code
04994df· David LordChanged add __future__ annotations
44ffe6c· David LordChanged remove deprecated send_file argument names
c2810ff· David LordChanged improve type hints for send_file and send_from_directory
d5aadba· Grey LiChanged consistent versions and deprecation messages
8ab4967· David LordChanged rename send_file add_etags to etag
14f5636· David LordChanged move send_file and send_from_directory to Werkzeug
dc11cdb· David LordChanged f-strings everywhere
2ae740d· David LordChanged remove more compat code
57d628c· David LordChanged remove _compat module
662c245· David LordChanged send_file doesn't allow StringIO
980168d· David LordChanged fix string concats left over by black
53c893b· David Lord fix · INFERREDChanged Reformat with black
025589e· David BaumgoldChanged Make sure the attachment filename is text type. If attachment filename is bytes type and contains non-ascii coded bytes, then the following ASCII encoding process will trigger UnicodeDecodeError exception.
40118e7· garenchanChanged add changelog for GH-2957
366f3f4· David LordChanged Allow partial content on bytesio
b570bf6· Ignasi BoschChanged Add support for PathLike objects in static file helpers
25de45c· Matt RobenoltChanged encode filenames as ascii instead of latin-1 latin-1 is allowed by pep3333, but that breaks gunicorn
b51ab3f· David LordChanged use theme provided by pallets-sphinx-themes
49a38ed· David LordChanged bump dependency versions
af32ea0· David LordChanged Fix ValueError for some invalid Range requests
c52e1b7· ThiefMaster fix · INFERREDChanged document inherited attributes for Flask and Blueprint closes #480 [ci skip]
235c830· David LordChanged filename can be latin-1, not just ascii only normalize basic name when utf-8 header is needed ref #2223
09b4910· David LordChanged style cleanup break out header parts in test test for no filename* parameter for ascii header
c197301· David LordChanged Keep using only filename if it's valid ascii
d50a5db· Antonio LarrosaChanged Remove unidecode dependency and use unicodedata instead
bf023e7· Antonio LarrosaChanged Fix previous commits to work with python 2 and python 3
6ef45f3· Antonio Larrosa fix · INFERREDChanged Fix send_file to work with non-ascii filenames
0049922· Antonio Larrosa fix · INFERREDChanged make use of range requests if available in werkzeug (#2031)
7186a5a· Joël CharlesChanged Avoid always-false statement
01081db· Markus UnterwaditzerChanged Killed now dead code
1f0ca89· Armin RonacherChanged Do not error for unknown files if send_file sends an actual file
a30951e· Armin RonacherChanged Fix error in send_file helper (#2003)
92ce20e· Roman fix · INFERREDChanged Properly remove f.name usage in send_file (#1988)
71e10be· Markus UnterwaditzerChanged pass value directly to last_modified
7c27140· David LordChanged Add last_modified arg for send_file
af515cc· Prachi Shirish KhadkeChanged Remove deprecation warnings for add_etags & mimetype guessing for send_file()
8458cc5· Dan SullyChanged remove 'flask' from etags to obscure server technologies
edb65cc· nivmChanged Update send_file() docs to clarify encoding requirement #1286
8056921· Keyan PishdadianChanged Remove bad security advice about send_file.
29f7c10· Edward Z. YangChanged docs: ``Flask-Uploads``, ``X-Forwarded-Host``
17eee81· defuzChanged docs: ``True``, ``False`` and ``None``
8284217· defuzChanged Remove a redundant "the" in a comment.
d4f6734· Petr ZemekChanged Fixed sending etags for file streams with a name. This fixes #930.
2506c0b· Armin Ronacher fix · INFERREDChanged Fixed a broekn testcase
9ae8487· Armin Ronacher fix · INFERREDChanged Set the content length automatically before calling wrap_file
47572c5· Armin RonacherChanged ported some more stuff to py 3.3
e1d356f· Thomas WaldmannChanged Consistent use of encoding naming
301e244· Armin RonacherChanged Set the content-length header for sendfile. Fixes #447
3bec75d· Armin Ronacher fix · INFERREDChanged I think it should check that cache_timeout is not None to allow for a (I hope legale) value of 0 for such parameter.
4b21e2d· Massimo SantiniChanged Use default send_file max-age consistently.
26da6a5· Ron DuPlainChanged Use American English for "behavior" in docs.
a3cb2a3· Ron DuPlainChanged Expose send_file max-age as config value, #433.
d94efc6· Ron DuPlainChanged Don't fail for unicode filenames with send_file(add_etags=True)
8017feb· Simon SapinChanged Fixed a typo
0ecc686· Armin RonacherChanged Do not use Date, use Last-Modified. This fixes #164
0bf777e· Armin Ronacher fix · INFERREDChanged Fix typo in send_file docs
4a45345· Dag OdenhallChanged Hint for positioning file pointer correctly before calling send_file().
858806d· Georg BrandlChanged Deprecated send_file etag support and mimetype guessing for file-like objects. This fixes #104
fda1467· Armin Ronacher fix · INFERREDChanged Emit correct date. In theory
85ff63c· Armin RonacherChanged Removed circular dependency by going over a proxy. This is the better solution anyway
b710986· Armin RonacherChanged Small cleanups
2b00ec4· Armin RonacherChanged phased out shared data middleware in flask for send_file
532347d· Armin RonacherChanged Added support for conditional responses to send_file
d0c6ad7· Armin RonacherMoved here in with the new. i have the bits in places where i think they should be, now i just need to work on the import scheme layout
d0dc89e· Justin QuickBorn Added support for send_file
2d87e9b· Armin Ronacher