I want to save a file from my servoy web client. It normally works well. But it happened some times, also on Mac and PC, that at the end of the file name, a ".doc" suffix is added.
The binaryData field is an XLS generated by a plugin
This is what I'm doing in my code:
- Code: Select all
application.output("fileName: " + fileName);
// Download file to client
plugins.file.writeFile(fileName, binaryData);
The console output with the file name is:
- Code: Select all
fileName: my file.xls
But the file is downloaded on my pc with this name: my file.xls.doc
You can see in the attached image the downloaded file from Chrome.
Who add that .doc extension?
Greetings,
Bogdan.