Skip navigation
Currently Being Moderated

setting file extension for flex download

Sep 21, 2011 11:17 AM

Hi, I have a flex/flash download app that I use on my website, but a lot of people have trouble with it because they rename the file and accidentally remove the .zip from the end of the file name.  Is there any way that i can prevent this?  I have noticed that when i click to download, the "Save as Type" drop down is blank.  It looks like this:

 

File name: myFileName.zip

Save as type:

 

I'm hoping that im just missing a param that i can set to .zip so that it will look more like this:

 

File name: myFileName

Save as type: .zip

 

 

Thanks!

 
Replies
  • Currently Being Moderated
    Sep 21, 2011 11:34 AM   in reply to jacecoleman

    This is a very, very poor stab in the very, very dark, but is your content-type on the server side set to zip ?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 10, 2012 4:45 AM   in reply to jacecoleman

    Having same issue. Were you able to find a solution?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 10, 2012 7:19 AM   in reply to dmunev

    Hi,

     

    You can restrict them to save in any other format by making the check.

    Simply add listner for the Event.OPEN on the fileReference and inside this check for your allowed extension,if the extension is not what you want then

    simply right a line there like:-

     

     

    fileReference.cancel();

     

    And addtionally you can give any alert that your file should be of that particular extension.

     

     

     

    with Regards,

    Shardul

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points