I think this has come up a few times before, but I couldn't find any discussion 
on it.

Why is it that the following code brings up a download dialog in the browser 
with the correct filename when I'm using the Modules DB, but the filename is 
blank when I am using the filesystem as the Modules db?

(xdmp:set-response-content-type(xdmp:uri-content-type("something.docx")),
xdmp:add-response-header("Content-Disposition", fn:concat("attachment; 
filename=", "something.docx")),
"myfile.xlsx")

Same behavior for all browsers.

Is it because you can't set response headers when using the filesystem as the 
Modules DB? If so, is there some compelling reason for this?

thanks,
Ryan
                                          
_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to