1 Reply Latest reply on May 7, 2010 11:01 AM by Sree_D

    Forcing Flex to use browser's download mechanism

    Alex Browning

      Hi,

       

      I am creating an application which seems to have ballooned somewhat, and I'm stuck with a particular requirement.

       

      Basically, what I need to do is provide a download button for a file (there may be many files, but it will be one button per file) that hands the actual download request to the browser rather than Flex's FileRef etc classes to do the job, so if the user has no download manager the browser adds it to it's own internal download queue.

       

      I've tried using URLRequest to initiate a download, but this seems to fail regardless of what I point it to (direct to file, or to an ASP, PHP or CFM script that tries to force content disposition etc).

       

      If anyone can point me in the right direction, I would be very greatful.

       

      Thanks,

       

      Alex.