I have a database that does the following. A user comes in and fills out a form via the web. When they hit submit another form comes up which is programmed to launch the first attachment. Everything works as needed except that for some reason the .Zip extension disappears when the user attempts to view or save the attachment. Anyone have any ideas. Here is the code:
In the submit button of the 1st form:
@Command([FileSave]);@URLOpen(“http://Birchnotes/Fldusrlaunch.nsf/DocumentLauncher/B8964CF83836207F882570C100791B9A?OpenDocument”)
In the HTML Head Content of the second form:
Path := @ReplaceSubstring(@Subset(@DbName;-1);“\”;“/”);
File := @ReplaceSubstring(@Subset(@AttachmentNames;1);" “;”+");
@If(@Attachments;“<script type ="text/javascript">”+@NewLine + “<!–”+@NewLine +
“location.replace('/”+path+“/0/”+@Text(@DocumentUniqueID) +“/$file/” + File+
“/');”+@NewLine +“–>”+@NewLine +“”;“”)
Everything works as intended except for the file extension not showing up which causes an issue on launch.
Any help would be greatly appreciated!
Dawn