FXP_READ - WeOnlyDo Discussion board

FXP_READ (wodFTPServer)

by californiaman, Sunday, April 26, 2009, 22:16 (5691 days ago)

I use wodFTPD Server 2.4.4. I use it in VS 2005. The server is operating as an SFTP Server. The code I have questions about is more or less like this:

[code]
Private Sub objServer_DownloadFile(ByVal User As wodFTPDComLib.FtpUser, ByVal RelativePath As String, ByRef ResolvedPath As String, ByRef Action As wodFTPDComLib.FtpActions) Handles objServer.DownloadFile

If User.Login = SFTPClient Then
ResolvedPath = C:\Images\01.TIF
End If
Action = wodFTPDComLib.FtpActions.Allow
End Sub
[/code]

I have simplified my code for purposes of my question. If my understanding is correct, the above code should let the user SFTPClient download the same file (C:\Images\01.TIF) every time regardless of the file requested in RelativePath.

This code however is giving the client the following error:
Server returned invalid response to FXP_READ.

The client was written with wodSFTP.NET component. It would impractical for me to ask for an upgrade of the clients' component. At this time, I need the server to always retrun the same documentto user SFTPClient, no matter what document is requested.

Can you help me find out what could be missing?


Complete thread: