Why does Safari ad an .html at the end

Discussion in 'macOS' started by justmehere, Jan 10, 2007.

  1. justmehere macrumors newbie

    Jan 4, 2006
    When trying to dowload from my email service Safari changes the file extension to *.pfd to *.pfd.html and same for *.exe files.

    does anyone know why it would do this ? is it email service or maybe could it be with Safari ?
  2. iMeowbot macrumors G3


    Aug 30, 2003
    Safari will respect the MIME type provided by the server and add an extension to match. The downloads probably have text/html assigned to them by the server, an odd choice for a generic file.

    This is supposed to help avoid a particular problem that has tended to plague apps in the Windows world, where the MIME type would be used by Internet apps to determine what were "safe" files, while the OS instead went by the extension attached to the file as offered by the remote party, negating the safety checks. It does get annoying when servers aren't configured correctly, and haven't been tested with client software that tries to respect the standards.
  3. fivetoadsloth macrumors 65816


    Aug 15, 2006
    Yeah, pretty mcuh summed up, though slightly annoying.

Share This Page