CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

FileDownload issue

by joelz » 10 Oct 2014 23:05

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
joelz
 
Posts: 75
Joined: 14 Mar 2013 13:54

by Jorge Sousa » 13 Oct 2014 09:33

Hello

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

Controller.CacheDir, lURL and aFileName ?
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by joelz » 13 Oct 2014 15:18

The values are the following.

Controller.CacheDir=e:\temp\cache\webdesk_base\01a822jf1o\
lURL=ATZ34B651297CB23.tmp
aFileName=FollowUpsum_20141013.csv
joelz
 
Posts: 75
Joined: 14 Mar 2013 13:54

by Jorge Sousa » 13 Oct 2014 20:24

Hello

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

Can you reproduce this issue in a test project?
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by joelz » 16 Oct 2014 05:07

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.
joelz
 
Posts: 75
Joined: 14 Mar 2013 13:54

by joelz » 17 Oct 2014 18:06

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;';
joelz
 
Posts: 75
Joined: 14 Mar 2013 13:54

by Jorge Sousa » 17 Oct 2014 18:12

Hi

Please you've to provide a demo,
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to JQFileDownload

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.