SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Wizard
    Join Date
    Oct 2001
    Location
    Lancaster, PA
    Posts
    3,019
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Netscape and File Downloads don't work?

    Hey all,

    Anyone know the trick to getting files to download within Netscape properly? I uploaded a file today and by linking to it directly in IE, it prompts you to save it...but in Netscape 4 or 6 it displays a whole bunch of gibberish in the browser window instead of starting the download.

    AARGH!!

    Yet another reason that I continue to dislike Netscape!!

    Cheers, and thanks for any advice!!

    Steve

  2. #2
    SitePoint Wizard geiger's Avatar
    Join Date
    Jul 2001
    Posts
    2,459
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What format was the file in?

  3. #3
    SitePoint Wizard
    Join Date
    Jul 1999
    Location
    Chicago
    Posts
    2,629
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your server has no idea what to do with the file, so it is probably telling the browser that it's a text file. Almost all browsers listen to the server; IE doesn't. If a file "looks" un-textish or ends with a known binary file extension, IE will present a save box instead of displaying it inline, despite what the server says.

    To fix this, simply add the following line to your httpd.conf or .htaccess:
    Code:
    AddType application/octet-stream .ext
    Replace ".ext" with the extension of the file you're serving.

    This is, of course, assuming you use Apache. Your host should be able to help you if you are using a different setup.
    Last edited by qslack; May 30, 2002 at 17:02.

  4. #4
    SitePoint Wizard
    Join Date
    Oct 2001
    Location
    Lancaster, PA
    Posts
    3,019
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Thanks Guys...

    Oddly enough it was a MS Publisher file that was too big to send via email (15MB) to the Publisher, so I offered to throw it up on our server so it could be downloaded. I guess since I don't use netscape too often, I'd never come across this before.

    I'll look into using the .htaccess method tomorrow qslack...thanks for the tip!

    Steve

  5. #5
    SitePoint Wizard
    Join Date
    Jul 1999
    Location
    Chicago
    Posts
    2,629
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If it's just a one-time thing, you can just make a simple HTML page with a link to the file. Tell the person on the other end to right-click on the link and select "Download link to disk."

  6. #6
    Non-Member mmi's Avatar
    Join Date
    Jun 2001
    Location
    Rhode Island
    Posts
    587
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool NS: good; IE: bad

    I had a similar experience with .wma files in Netscape - when I downloaded a .wma from mmy site, I got "a lot of gibberish" - I saved as x.wma, opened the file and it played - perhaps this is possible with other formats - you just need to know what extension to add

  7. #7
    SitePoint Wizard
    Join Date
    Oct 2001
    Location
    Lancaster, PA
    Posts
    3,019
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Cool

    I think that was just what I was looking for qslack...just couldn't think of it yesterday with all that was going on in the office.

    Much appreciated!

    Steve


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •