Page 1 of 1

FileDownload issue

PostPosted: 10 Oct 2014 23:05
by joelz
I am trying to use the filedownload and it works perfectly on all browsers except for IE when run under IIS. (stand alone works fine.)

The download file needs to be renamed to the aFileName in the call below. However, IE when running under IIS does not use the aFilename that is passed in.

lCGFileDownload.DownloadFileName( Controller.CacheDir + lURL, aFileName );

Thanks

Re: FileDownload issue

PostPosted: 13 Oct 2014 09:33
by Jorge Sousa
Hello

This is something we cannot reproduce in our demo, what is the values of

Controller.CacheDir, lURL and aFileName ?

Re: FileDownload issue

PostPosted: 13 Oct 2014 15:18
by joelz
The values are the following.

Controller.CacheDir=e:\temp\cache\webdesk_base\01a822jf1o\
lURL=ATZ34B651297CB23.tmp
aFileName=FollowUpsum_20141013.csv

Re: FileDownload issue

PostPosted: 13 Oct 2014 20:24
by Jorge Sousa
Hello

I can only think that the requested file doesn't exist.

Can you reproduce this issue in a test project?

Re: FileDownload issue

PostPosted: 16 Oct 2014 05:07
by joelz
I checked and the file is definately created, but the download tries to download a totally different file under ie 8 and 9 when under isapi.

Anyway, I just switched back to using webapplication.sendfile and it still work under the older browsers.

Re: FileDownload issue

PostPosted: 17 Oct 2014 18:06
by joelz
Ok. The send file works with IE8 and 9 but now the page stays locked aftter the download because I am using the cglockindicator.

How do I tell the cglockindicator to release itself? In iw I used to use on the button the following so that after a sendfile the page would not be locked.

ScriptEvents.Values['onClick']:= 'ReleaseLock(); GActivateLock=false; return true;';

Re: FileDownload issue

PostPosted: 17 Oct 2014 18:12
by Jorge Sousa
Hi

Please you've to provide a demo,