Problem with download file from AVFP

Topics: User Forum
May 13, 2015 at 4:12 PM
Edited May 13, 2015 at 4:13 PM
Hi friends,
i have a new problem when i try to download a file from AVFP.

I have a directory that includes all my attachments that i want to show in my web page.
I use this code:
nAllegati = ADIR(cAllegato,ADDBS(oProp.DataPath + "allegati\" + ALLTRIM(STR(cScheda.ieanno)) + "_" + ALLTRIM(STR(cScheda.ieprog)))+"*.*") %>
<% FOR i = 1 TO nAllegati %>
<p><a href="<%=[http://]+oRequest.ServerVariables("HTTP_HOST")+JustPath(oRequest.ServerVariables("URL"))+[/data/allegati/]+ALLTRIM(STR(cScheda.ieanno)) + "_" + ALLTRIM(STR(cScheda.ieprog))+[/]+ALLTRIM(cAllegato[i,1])%>">Scarica</p>
<% ENDFOR %>
Seems to working fine. The hypertext is correctly but when i click on it, i'm redirected to wrong link, such as this:
http://localhost/xxx/data/allegati/2015_72/file.zip/default.avfp
N.B. In my IIS configuration i have already an MIME TYPE for .zip format.
May 15, 2015 at 3:24 PM
My mistake... I haven't put the web.config in the attachments directory. I'm sorry!
Marked as answer by mr_ocean on 5/15/2015 at 7:24 AM