I have read many posts on this – when clicking on an attachment, have the Open/Save dialog appear for the attachment…
I found this solution:
http://www.codestore.net/store.nsf/unid/EPSD-59MN9J?OpenDocument
but I was hoping to avoid the Java route…
I have an agent that processes a .txt file and I would like to present the user with the Open/Save dialog instead of opening the actual document with the attachment and having them right-click and choose from that menu.
The agent is working fine — it presents the Open/Save dialog, however, it saves the .txt with HTML content. I have the same issue as:
On the form I attach the file to, I have a computed for display field with the following:
@SetHTTPHeader(“Content-Type”; “application/force-download”);
@SetHTTPHeader(“Content-Type”; “application/octet-stream”);
@SetHTTPHeader(“Content-Type”; “application/download”);
@SetHTTPHeader(“Content-Disposition”; “attachment; filename="” + attachmentName + “"”);
@SetHTTPHeader(“Content-Transfer-Encoding”; “binary”);
@SetHTTPHeader(“Content-Length”; @AttachmentLengths)
Should this be placed in the HTML Head Content of the form instead of a field? Should I enlcose the field in tags?
Any help would be great.
Thanks!
Dan