Jump to content

Access denied in UniSession.SendStream


leo-veio

Recommended Posts

Hi,
 
When I try send a file with UniSession.SendStream or UniSession.SendFile the browser debug show the following message:
 
<html>Access denied ..\3nBPyYfkFVA3vRB\$$\file.eml.</html>

 

Could someone help me ?

 

Tks,

Link to comment
Share on other sites

Hi,

 

It was solved adding the mime type in TUniServerModule.UniGUIServerModuleCreate .

 

Tks!

procedure TUniServerModule.UniGUIServerModuleCreate(Sender: TObject);
begin
  MimeTable.AddMimeType('eml', 'e-mail');
end;

  • Upvote 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...