Is there already a definition of a mimetype for bicep files? #4939
-
I am currently facing the problem that I need to store a mimetype for the If not, would one of the following examples be acceptable? e.g. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @samtrion I personally don't have any depth of understanding on mime types; However after doing some research on this, I have a few questions/comments. I can do some follow up on this request. What is your use case for this? Assuming this is for a linux evironment? It seems the bicep files are just defaulted to text/plain file --mime-type -b ./bicep/00-ALL-MG.bicep
text/plain That seems reasonable for a file association; I guess you may want something more specific for how to handle bicep files? Maybe what editor it would open up with? Or some kind of scanning? referencing these docs In particular this doc: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#types It seems like application is supposed to be for binary files?
So text seems appropriate?
The confusing part is that we have It seems there is a link to these text options and they are registered with iana: I see in our docs that it does recommend registering new mime types. In which case we would register a new discrete, text subtype.
The other main factor is what is mentioned here:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type So I believe this will default to
|
Beta Was this translation helpful? Give feedback.
Hi @samtrion
I personally don't have any depth of understanding on mime types; However after doing some research on this, I have a few questions/comments. I can do some follow up on this request.
What is your use case for this? Assuming this is for a linux evironment?
It seems the bicep files are just defaulted to text/plain
That seems reasonable for a file association; I guess you may want something more specific for how to handle bicep files? Maybe what editor it would open up with? Or some kind of scanning?
referencing these docs
https://www.iana.org/assignments/media-types/media-types.xhtml
In particular this doc: https://develope…