observablehq / stdlib

The Observable standard library.
https://observablehq.com/@observablehq/standard-library
ISC License
959 stars 83 forks source link

mimeType for FileAttachment #281

Closed mbostock closed 2 years ago

mbostock commented 2 years ago

This allows the resolve function used with FileAttachments to return a mimeType in addition to a url, and if so, the MIME type will be exposed on the resulting file attachment.