Archive for March, 2012
var fileReference:FileReference = new FileReference()
fileReference.save(data:* , fileNameToSave:String);
When we give fileNameToSave = “WordPressFile.text”, file reference window show only “WordPressFile” and do not show “.text” but file saved in text format by default. But if you have csv file and when you give “WordPressFile.csv”, again it do not show “.csv” in filename inputand save file with unrecognised format icon.
To solve it I did fileReference.save(data:* , “WordPressFile.csv.csv”) and it worked! It shows “WordPressFile.csv” in filename input and on saving file shows excel format.
Does any one know why Flash player is doing this?