codice:
' Timeout di massimo tempo di esecuzione = 100 minuti
Server.ScriptTimeout=6000
' Prevenire il 'caching' della risorsa
response.addheader "Cache-Control", "no-store, no-cache, must-revalidate"
response.addheader "Cache-Control", "post-check=0, pre-check=0"
response.addheader "Pragma", "no-cache"
file = server.mappath(request.querystring("file"))
response.addheader "Content-Type", "application/x-msdownload"
response.addheader "Content-Disposition", "attachment; filename=" & basename(&file)
response.end
Error Type:
Microsoft VBScript compilation (0x800A03EA)
Syntax error
Su questa riga:
codice:
response.addheader "Content-Disposition", "attachment; filename=" & basename(&file)