为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Cannot download files with extension cdp, get hex dump instead. Have tried Options/Applications but problem persists.

  • 1 个回答
  • 1 人有此问题
  • 8 次查看
  • 最后回复者为 cor-el

more options

I run a website from which visitors can download 3D models (for a railsim) in the form of compressed files with the cdp extension. When I click on the links in my webpage using another browser it immediately offers me the open or save as dialogue box. When I click on the webpage links in Firefox I get a screen showing what I imagine is a hex dump i.e. Firefox appears to be trying to read the file rather than offer it as a download, which is what I want. I have tried the Options/Applications settings. The cdp extension is set to 'Save File', but it doesn't. Any logical explanation would be very welcome, and hopefully a solution. Thanks

I run a website from which visitors can download 3D models (for a railsim) in the form of compressed files with the cdp extension. When I click on the links in my webpage using another browser it immediately offers me the open or save as dialogue box. When I click on the webpage links in Firefox I get a screen showing what I imagine is a hex dump i.e. Firefox appears to be trying to read the file rather than offer it as a download, which is what I want. I have tried the Options/Applications settings. The cdp extension is set to 'Save File', but it doesn't. Any logical explanation would be very welcome, and hopefully a solution. Thanks

所有回复 (1)

more options

If Firefox opens the file in a tab then that means that the server probably sends the file as text/plain and in that case you need to configure to send the file with the correct content (MIME) type.
Otherwise you need to right-click the link and choose "Save Link as" or hold down the Alt key and left-click (Windows only).

See https://developer.mozilla.org/en/Properly_Configuring_Server_MIME_Types