Jump to content

Download File issues

Guest Efthymios Kalyviotis

Recommended Posts

Guest Efthymios Kalyviotis


I have created a file the following way.



IntToStr(DevData.ID) + '_All_' +

IntToStr(Year) + IntToStr(Month) + IntToStr(Day) + ' ' +

IntToStr(Hour) + IntToStr(Min) + IntToStr(Sec) + '.CSV';


AssignFile(FType, UniServerModule.LocalCachePath + sFileName);






Then I display a link on that file:


ShowMessage('CSV file has been created. You can download it from ' +

'<a href="' + UniServerModule.LocalCacheURL + sFileName +'" target=new>here</a>');


When a user clicks the link, I have a new page that says:

Access Denied for file 'blah blah blah...'


I searched the forum and I found out that if I change the file extension to .txt, then it works ok.

This seems to me like a security issue. Does anybody know how I can overcome this?


Thank you very much


Efthymios Kalyviotis.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...