Re: VirtualFile isn't downloading (General questions)
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:
- VirtualFile isn't downloading - schliefdot, 2007-10-05, 21:19
- Re: VirtualFile isn't downloading - wodDamir, 2007-10-05, 22:07
- Re: VirtualFile isn't downloading - schliefdot, 2007-11-07, 17:42
- Re: VirtualFile isn't downloading - woddrazen, 2007-11-07, 19:32
- Re: VirtualFile isn't downloading - schliefdot, 2007-11-14, 22:10
- Re: VirtualFile isn't downloading - woddrazen, 2007-11-07, 19:32
- Re: VirtualFile isn't downloading - schliefdot, 2007-11-07, 17:42
- Re: VirtualFile isn't downloading - wodDamir, 2007-10-05, 22:07