I'm trying to make a file available for download, but do not want to reveal its absolute path. The following code does work with small files (100K), but fails with anything large:
Response.Expires = 0
if session("username") <> "" then
Response.ContentType = "application/zip"
Response.AddHeader "Content-Disposition", "attachment; filename=blah4.zip"
Session("DL1") = ""
%><!-- #INCLUDE FILE = secret/secretfile.zip //-->
1) Is there something I'm missing or is there a system limitation?
2) Is this even the right approach? How would i secure files that I don't want the users to have access to, unless they are authenticated?