Skip to content
Myr

explain seek

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent 2a8a38b · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:src/flask/helpers.py+2 added-2 removed
443 unmodified lines
444 path, which is much more efficient than reading it in Python.445446 :param path_or_file: The path to the file to send, relative to the447 current working directory if a relative path is given.448 Alternatively, a file-like object opened in binary mode. Make449 sure the file pointer is seeked to the start of the data.448 Alternatively, a file-like object opened in binary mode; make449 sure to call ``seek(0)`` if it was already read.450 :param mimetype: The MIME type to send for the file. If not451 provided, it will try to detect it from the file name.452 :param as_attachment: Indicate to a browser that it should offer to453 save the file instead of displaying it.
229 unmodified lines