Recent

Author Topic: MimeTypes.LoadKnownTypes does not work well on Windows  (Read 629 times)

Delphino

  • Newbie
  • Posts: 4
  • Is best be far to see all....
MimeTypes.LoadKnownTypes does not work well on Windows
« on: September 25, 2024, 04:39:20 pm »
Hi Pals:

On Windows 11 I got some issues using system mime types.

MimeTypes.LoadKnownTypes load the file extensions with the dot '.' and the search of for example MimeTypes.GetMimeType doesn't find anything because the dot '.' is removed when the search is made.

A good mime.type file does not use the dot '.' on the extension, but on the Windows registry does.

Before use MimeTypes list, must to wash the extensions off the dots or use a custom mime.type file.

Best Regards

paweld

  • Hero Member
  • *****
  • Posts: 1278
Re: MimeTypes.LoadKnownTypes does not work well on Windows
« Reply #1 on: September 25, 2024, 07:15:59 pm »
Best regards / Pozdrawiam
paweld

 

TinyPortal © 2005-2018