Skip to content

Autodetect media type if not provided

Jamie Tanna requested to merge defect/media-type into develop

As noted in #417 (closed), in the case we receive a file without a filename we can autodetect, we should infer from the contents of the file, based on its contents, via 0.

This is not ideal as it'll end up reading the whole set of bytes, and could lead to a very expensive operation, but hopefully isn't that often.

Closes #417 (closed).

Merge request reports