Jump to content

ISAPI to Hyperserver ISAPI problem


emin

Recommended Posts

Hello,

When I moved the application that I used as ISAPI module before to HyperServer ISAPI module, I started getting feedback from users that the documents were saved to the wrong directory. Errors usually occur in areas with the following codes.  Do I need to change any part of my code.
1- To File upload I use below code

AStream: TFileStream);
var
  F: TFileStream;
begin
  if not DirectoryExists(uniservermodule.FilesFolderPath + 'policeler' +
    pathdelim + policeliste.FieldByName('policeid').AsString) then
    ForceDirectories(uniservermodule.FilesFolderPath + 'policeler' + pathdelim +
      policeliste.FieldByName('policeid').AsString);
  F := TFileStream.Create(uniservermodule.FilesFolderPath + 'policeler' +
    pathdelim + policeliste.FieldByName('policeid').AsString + pathdelim +
    policeevrakiyuklebuton.FileName, fmCreate);
  TRY
    F.CopyFrom(AStream, AStream.Size);
    FINALLY F.Free;
  END;
end;


2- Sending the file saved in the user cache file with send file

UniSession.SessionId+pathdelim+'Test.pdf';

Thanks in advance

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...