Which MIME type to use for a binary file that's specific to my program?

前端 未结 4 1676
醉梦人生
醉梦人生 2020-12-02 08:04

My program uses its own binary file type, so I assume I can\'t use MIME type text/plain, as it is not a 7-bit ASCII file.

Should I just call it \"application/myappna

4条回答
  •  醉梦人生
    2020-12-02 08:31

    I'd recommend application/octet-stream as RFC2046 says "The "octet-stream" subtype is used to indicate that a body contains arbitrary binary data" and "The recommended action for an implementation that receives an "application/octet-stream" entity is to simply offer to put the data in a file[...]".

    I think that way you will get better handling from arbitrary programs, that might barf when encountering your unknown mime type.

提交回复
热议问题