Hi,
Does anyone know a way to set up a link so that it will download (via
http) a .csv file for the user with the appropriate .csv extension?
Here' s what I've tried so far:
I added the following to ExtensionMap.ini:
.CSV TEXT XLS8 application/vnd.ms-excel
I used the following code:
<%
...
$vt_FileName:=example.csv
set response header("Content-Distribution";"attachment;filename="+
$vt_FileName)
set cache control("private")
write blob($vx_Download_BLOB;".csv")
%>
clicking on the link produces a dialog to save the file. The default
file name is the name of the active4D page where the code above ran,
minus an extension. The dialog says the file type is unknown.
Anyone know how to convey to the browser the correct file type?
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/