Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IW 15.5.10 Sendfile
#6
(05-15-2024, 01:53 PM)joelcc Wrote: If it is the mime types then this may help to add some things to the servercontroller since everything is locked down now.

procedure TController.IWServerControllerBaseConfig(Sender: TObject);
begin
  RestartExpiredSession := True;
  TIWMimeTypes.RegisterType('.woff','application/x-font-woff', true);
  TIWMimeTypes.RegisterType('.ttf', 'font/ttf', true);
  TIWMimeTypes.RegisterType('.otf', 'font/otf', true);
  TIWMimeTypes.RegisterType('.csv',  'text/csv', True);

  //Needed to allow static html files to be servered up
  TIWMimeTypes.RegisterType('.html', MIME_HTML, True);
  TIWMimeTypes.RegisterType('.txt', MIME_TXT, True);

//  RegisterContentType('application/xml');


end;

In what unit can I find TIWMimeTypes?
Reply


Messages In This Thread
IW 15.5.10 Sendfile - by Mikael Nilsson - 05-13-2024, 12:33 PM
RE: IW 15.5.10 Sendfile - by MJS@mjs.us - 05-13-2024, 09:17 PM
RE: IW 15.5.10 Sendfile - by Mikael Nilsson - 05-15-2024, 08:35 AM
RE: IW 15.5.10 Sendfile - by joelcc - 05-15-2024, 01:53 PM
RE: IW 15.5.10 Sendfile - by Mikael Nilsson - 05-16-2024, 07:39 AM
RE: IW 15.5.10 Sendfile - by Mikael Nilsson - 05-15-2024, 02:20 PM
RE: IW 15.5.10 Sendfile - by MJS@mjs.us - 05-16-2024, 09:43 AM
RE: IW 15.5.10 Sendfile - by Mikael Nilsson - 05-16-2024, 09:54 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)