# \[bug-13936\]File names not working when saving files

**URL:** <https://forum.inductiveautomation.com/t/bug-13936-file-names-not-working-when-saving-files/25102>\
**Category:** Ignition\
**Created:** [May 17, 2019, 3:43pm UTC](https://forum.inductiveautomation.com/t/bug-13936-file-names-not-working-when-saving-files/25102 "2019-05-17T15:43:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 17, 2019, 4:15pm UTC](https://forum.inductiveautomation.com/t/bug-13936-file-names-not-working-when-saving-files/25102/2 "2019-05-17T16:15:24Z")

</div>

I just looked into this, and it's a bug on our side caused by some old code to enable translation on the file opening dialogs - it looks like our old workaround ends up negatively affecting the file choosers. I've filed a ticket so we can investigate taking it out. For now, you could probably adjust the code I have here to make your own `saveFile` function:

> [@system.file.openFile - Several file extensions?](http://forum.inductiveautomation.com/t/system-file-openfile-several-file-extensions/23315/3):
>
> It’s not possible through the system function directly, unfortunately. Untested workaround solution: from com.inductiveautomation.ignition.client.script import ClientFileUtilities def openFiles(desc, \*extensions): filechooser = ClientFileUtilities.getChooser(0, desc, \*extensions) filechooser.setMultiSelectionEnabled(True) if filechooser.showOpenDialog(None) is not None: return [file.getPath() for file in filechooser.getSelectedFiles()] def openFile(desc, \*extensions): filechooser = Cl…

Something like:

```auto
from com.inductiveautomation.ignition.client.script import ClientFileUtilities
from javax.swing import JFileChooser
from java.io import File

def saveFile(filename, extension, description):
	filechooser = ClientFileUtilities.getChooser(JFileChooser.SAVE_DIALOG, description, extension)

	filechooser.setSelectedFile(File(filename))

	ret = filechooser.showSaveDialog(None)
	if ret == JFileChooser.APPROVE_OPTION:
		return filechooser.getSelectedFile().getPath()

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/bug-13936-file-names-not-working-when-saving-files/25102)._
