Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

justmehere

macrumors newbie
Original poster
Jan 4, 2006
11
0
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 ?
 

iMeowbot

macrumors G3
Aug 30, 2003
8,634
0
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.
 

fivetoadsloth

macrumors 65816
Aug 15, 2006
1,035
0
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.

Yeah, pretty mcuh summed up, though slightly annoying.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.