0 Replies Latest reply on Apr 18, 2006 1:01 PM by coastercam

    download window opens 2twice

    coastercam
      I am encountering a cfheader/cfcontent problem with IE6. Works OK in FireFox. Download windows opens twice.

      The code uses a query getImg, returning a blob object to temp file, then allows download.

      <CFSET docname = #ReplaceNoCase(Rtrim(getImg.doc_Name), " ", "_","all")#>

      <CFFILE action="WRITE"
      file="#GetDirectoryFromPath(GetCurrentTemplatePath())#/#docname#"
      output="#toBinary(getImg.blob_obj)#"
      addnewline="No">

      <CFHEADER NAME="Content-Disposition"
      VALUE="attachment; filename=#docname#">

      <CFCONTENT type="#getImg.file_desc#"
      file="#GetDirectoryFromPath(GetCurrentTemplatePath())#/#docName#"
      deletefile="Yes">

      Any help would be appreciated. It works, but requires 2 clicks from the user. (Also, the file name appears as it is duplicated, docname[1].someExtension)

      thanks,
      coastercam