# FileReference.save() - File Extensions?

**URL:** <https://forum.kirupa.com/t/filereference-save-file-extensions/310768>\
**Category:** flash\
**Created:** [June 18, 2010, 3:51pm UTC](https://forum.kirupa.com/t/filereference-save-file-extensions/310768 "2010-06-18T15:51:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![h3d0](https://avatars.discourse-cdn.com/v4/letter/h/5f8ce5/32.png) [@h3d0](https://forum.kirupa.com/u/h3d0)\
**Post date:** [June 18, 2010, 3:51pm UTC](https://forum.kirupa.com/t/filereference-save-file-extensions/310768/1 "2010-06-18T15:51:24Z")

</div>

Hi!

I’m using FileReference.save() method for Flash10 to save a file. It looks like this:

```auto

fr.save(BytesArray, "default.xml");        

```

When I use default name - everything is ok. But when I change file’s name in “Save Dialog Box” \*.xml extension disappears!

Is there any way to fix that? I mean, I want user to input only filename without extensions.
