Re: VirtualFile isn't downloading - WeOnlyDo Discussion board

Re: VirtualFile isn't downloading (General questions)

by schliefdot, Wednesday, November 07, 2007, 17:42 (6227 days ago) @ wodDamir

So I tried to the Sample #7 and it works fine...and I can't really make it a Windows App (easily).

When I write to the event log what the Relative Path and the Resolve Path, this is what I get

WriteEvent( ListDir: RelativePath: & RelativePath)
->
ListDir: RelativePath: /My Files

WriteEvent( ListDir: ResolvedPath: & ResolvedPath)
->
ListDir: ResolvedPath: D:InetPubSFTP_ServerServiceRootUserMy FilesIniFile.zip

Yet, I had called

User.VirtualFiles.AddFile( / & xCompany.getAttribute( Name ), xFile.getAttribute( Name ), dConfig.Item( FileStore ) & xFile.getAttribute( SN ) & .zip )

Where xCompany.getAttribute( Name ) = My Files ,
xFile.getAttribute( Name ) = IniFile.zip ,
dConfig.Item( FileStore ) = D:InetpubSFTP_ServerServiceFileStore
xFile.getAttribute( SN ) = 9H8R43w4q0jovI50Eh3hvbsTo5XzpJ.zip

..so the resolved path for /My Files/IniFile.zip should be D:InetpubSFTP_ServerServiceFileStore9H8R43w4q0jovI50Eh3hvbsTo5XzpJ.zip

And I know the file is there, but of course when I try to download the file, I get Response: 500 No such file because it's looking in the natural file structure place, not the Resolved place that I told it via VirtualFiles directrive.


Complete thread: