Closed simonw closed 4 years ago
Extension on #14. Would add the following header to the response:
Content-Disposition: attachment; filename="filename.jpg"
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition
Needs tests for all four routes:
While writing the unit tests for this I figured out SQLite BLOB literals: https://github.com/simonw/til/blob/master/sqlite/blob-literals.md
Documentation: https://github.com/simonw/datasette-media/blob/0.5/README.md#setting-a-download-file-name
Extension on #14. Would add the following header to the response:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition