emin Posted September 1, 2021 Share Posted September 1, 2021 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.