hope ‘Cant access file’ error message add path info.

Home Forums kbmMW hope ‘Cant access file’ error message add path info.

Viewing 1 reply thread
  • Author
    Posts
    • #55608
      TomYU
      Participant

      hi,

      I hope error message of fileservice : “Cant access file” add file path info.

      
      ref:=FilePool.Access(path,mwfamOpenRead,FFileToken,h);
      try
      if not kbmMWGetFileSize(ref.Path,sz,h) then
      kbmMWRaiseException(KBMMW_ERR_SERVICE_FILE_RESOURCEBUSY,path+'Cant access file');// add path.
      
      

      best regards

      Tom YU.

    • #55610
      kimbomadsen
      Keymaster

      Hi,

      I understand your request. The problem is imo of security concerns. The path will be the actual path on the drive, not the originally requested path, which would be a security issue to reveal for example on a web page.

      /Kim

      • #55613
        TomYU
        Participant

        Can it display the file name requested by the client?

Viewing 1 reply thread
  • You must be logged in to reply to this topic.