feross / feross/render-media

provide mimeType instead of fileName

Open
#78 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
209
Forks
26
PR merge metrics
No merged PRs in 30d

Description

I have an application where I'm storing blobs and not storing the filename. I do store a: `{ title, mimeType, size }`
At the moment I'm using `render-media` by faking a filename, then internally `render-media` guesses a mimeType from my extension. This feels slightly painful when I can see the API could be extended to just allow mimeType to be passed in directly?

Would this be a welcome addition I'm happy to open a PR.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.