Downloads don't work

Hi,
I am using 1.5.4.2397 in XE3 upd2 with Intraweb 14.0.10
The download component in the demo project JQueryDemoIW14 don't work. Only the Url download from an external url (the sysinternals download) works. All other downloads just dont' responde. When in callback mode it says "Fail". I looked in the code there seems to be an issue in IW14
procedure TIWJQDownloadFrame.IWCGJQButton3JQButtonOptionsClick(Sender: TObject; AParams: TStringList);
var
FileName: string;
URL: string;
CacheFileName: string;
begin
// Copy file to cache folder
// Url will be without 'http' perfix, Example: /$/Cache/user/1jfid1q0vc88st166wror0nbi0mm/TestFile.txt
FileName:= GetFileName;
CacheFileName:= WebApplication.UserCacheDir + ExtractFileName(FileName);
Windows.CopyFile(PWideChar(FileName),PWideChar(CacheFileName),False);
URL:= IWServerController.CacheDir + ExtractFileName(CacheFileName);
IWCGJQFileDownload.DownloadUrl(URL);
end;
You use IWServerController.CacheDir to get the url for the cacheDir. But in IW14 I think it should be WebApplication.UserCacheUrlBase because IWServerController.CacheDir returns a local path and not a url as you comments suggest. WebApplication.UserCacheUrlBase does return a Url. So I changed the code to:
url := WebApplication.UserCacheUrlBase + ExtractFileName(CacheFileName);
But it still doesn't work.
please help!
I am using 1.5.4.2397 in XE3 upd2 with Intraweb 14.0.10
The download component in the demo project JQueryDemoIW14 don't work. Only the Url download from an external url (the sysinternals download) works. All other downloads just dont' responde. When in callback mode it says "Fail". I looked in the code there seems to be an issue in IW14
procedure TIWJQDownloadFrame.IWCGJQButton3JQButtonOptionsClick(Sender: TObject; AParams: TStringList);
var
FileName: string;
URL: string;
CacheFileName: string;
begin
// Copy file to cache folder
// Url will be without 'http' perfix, Example: /$/Cache/user/1jfid1q0vc88st166wror0nbi0mm/TestFile.txt
FileName:= GetFileName;
CacheFileName:= WebApplication.UserCacheDir + ExtractFileName(FileName);
Windows.CopyFile(PWideChar(FileName),PWideChar(CacheFileName),False);
URL:= IWServerController.CacheDir + ExtractFileName(CacheFileName);
IWCGJQFileDownload.DownloadUrl(URL);
end;
You use IWServerController.CacheDir to get the url for the cacheDir. But in IW14 I think it should be WebApplication.UserCacheUrlBase because IWServerController.CacheDir returns a local path and not a url as you comments suggest. WebApplication.UserCacheUrlBase does return a Url. So I changed the code to:
url := WebApplication.UserCacheUrlBase + ExtractFileName(CacheFileName);
But it still doesn't work.
please help!