从IE7下载rar文件的问题 [英] Problem to download rar file from IE7

查看:110
本文介绍了从IE7下载rar文件的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用Java编写的servlet,它根据服务器对用户进行身份验证,然后在.rar扩展名中打开/查看压缩文件。我已将内容类型指定为'application / x-compressed',IE7提升下载弹出窗口并将文件扩展名更改为.zip。我试过'application / x-rar-compressed'而且IE7没有认出它。如何指定文件名,或阻止IE7更改comrepssed文件扩展名。

I have a servlet written in Java which authenticates the user against the server and then opens/view compressed file in .rar extension. I have specified content type as 'application/x-compressed', IE7 promote the download popup and change the file extension to .zip. I have tried 'application/x-rar-compressed' and IE7 does not recognized it. How can I sepecify the file name, or prevent IE7 change the comrepssed file extension.

推荐答案

Windows默认情况下没有rar分解器。所以它假设通过压缩,你的意思是压缩。我想你只需要将它作为通用二进制文件发送;然后IE不会搞乱它。
Windows doesn't have a rar decompresser by default.  So it assumes that by compress, you mean zipped.  I think you just need to send it as a generic binary file; then IE won't mess with it.


这篇关于从IE7下载rar文件的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆