• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

downloading .cab files

 
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have uploaded .cab files on my website.When i try to download them it get opened in html format.

File can be downloaded if i right click on hyperlink and explicitly save file with .cab extension.

Is there any way to do it?


ex

[ June 12, 2007: Message edited by: Bear Bibeault ]
 
Marshal
Posts: 67447
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read this regarding using "urgent" in your posts. I have adjusted the topic title for you.
[ June 12, 2007: Message edited by: Bear Bibeault ]
 
Satyajeet Kadam
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to prevent browser from opening .cab files in browser itself.It should open confirmation dialog box before downloading.Is there any way that we can do in html coding to prevent this or any other way
 
Bear Bibeault
Marshal
Posts: 67447
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is nothing you can do in HTML. You can either fiddle with the browser settings, or you can add response headers on the server to affect the content disposition. The latter requires that you serve the file from a servlet or other server-side language.
 
Satyajeet Kadam
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to prevent the browser opening the cab files in browser itself.
It should ask conformation brfore downloading.

It works properlt for .zip files.It popup a confirmation dialog box. Same should work for .Cab files

This code ask for confirmation before downloading




If i change the code to .cab it opens in browser itself with wired charactes.
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi amolpalekar,

I get a 404 page when I try to open up the cab file. Is the file there? The zip file behaves as you described it...

Regards,
Dan
 
Bear Bibeault
Marshal
Posts: 67447
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by amolpalekar kadolkar:[/QB]



Yes, and I answered your question.
 
Stop it! You're embarassing me! And you are embarrassing this tiny ad!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic