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!
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
I ended up using flex to call a JavaScript function on the parent page that has the URL of my zip file as the only param. Then i set the document location to the url specified to force the browser to download the zip file. This works much better in my opinion and we haven't seen any support tickets since the change.
North America
Europe, Middle East and Africa
Asia Pacific