What's the correct email attachment MIME type for a zipped and password protected file?

安稳与你 提交于 2020-06-11 05:41:10

问题


It's zipped and password protected with 7zip, should the mimetype be "application/7zip", or just "data/binary"? Something else?


回答1:


According to Wikipedia (7z article), the mime type of a 7zip archive is application/x-7z-compressed, having a password on it will not change the mimetype.

If it is a zip (ie. not 7-zip file), the mimetype should be application/zip



来源:https://stackoverflow.com/questions/2203400/whats-the-correct-email-attachment-mime-type-for-a-zipped-and-password-protecte

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!