Flex FileReference.save() issue and possible solution

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?

Advertisements
  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: