0 Replies Latest reply on Jul 17, 2009 5:22 PM by cymruambythMdh

    Can the FileReference download *really* handle any file type?

    cymruambythMdh

      From what I’ve read about the FileReference class, it should be able to handle any file type. I haven’t had any problems downloading .doc, .xls, and .pdf files, but I do get errors when trying to download .xml and .txt and .log. Here’s an example of an xml file that won’t download:

       

      <?xml version=1.0 encoding=”UTF-8″?>
      <books>
      <book>
      <title>A Tale of Two Cities</title>
      <author>Charles Dickens</author>
      </book>
      <book>
      <title>Emma</title>
      <author>Jane Austen</author>
      </book>
      <book>
      <title>The Count of Monte Cristo</title>
      <author>Alexandre Dumas</author>
      </book>
      </books>

       

      The error I get upon trying to download this file is “Error #2038: File I/O Error”

      Does anyone else have problems downloading with .xml and .txt files?