Mime Type of download

asked 2019-11-22 13:27:38 +0800

gel88 gravatar image gel88


I want use the automatic file open feature of Firefox, which opens a file without asking for confirmation. For that to work one has to set the correct Mime Type. The Zk filedownloader however adds an chraset=UTF-8 tag, which is inappropiate for raw files (e.g. it should be application/vnd.ms-excel, but gets application/vnd.ms-excel;charset=UTF-8). Even setting the encoding in AMedia doesnt change this behaviour. Is there any way to make autmatic opening of downloaded files working with firefox?


delete flag offensive retag edit

1 Reply

Sort by » oldest newest

answered 2019-11-22 18:44:10 +0800

cor3000 gravatar image cor3000
5833 2 7
ZK Team

updated 2020-11-17 12:37:55 +0800

currently this feature doesn't exist so I posted the Feature request: ZK-4418

Update (2020-11-17): ZK-4418 -> 9.5.1

Setting the library property org.zkoss.zul.Filedownload.contentTypeAsIs to false will responde with the content-type as provided - and encode text/string based (non-binary) downloads accordingly.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2019-11-22 13:27:38 +0800

Seen: 21 times

Last updated: Nov 17 '20

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More