I haven't tried on other platforms, but I'm using Windows, and this is the behavior.
When I try to saveAs a file with a filename with a colon (I was trying to use a datetime plus some other things) it was just failing silently with null. I did some research and found that colons are disallowed.
I think one good option is for FileSaver to throw an exception. (Perhaps an InvalidFileNameException)
Alternatively, the dialog can still open with the illegal characters, and windows itself will complain when you press the save button (I have tried this and it does complain)
I haven't tried on other platforms, but I'm using Windows, and this is the behavior.
When I try to
saveAs
a file with a filename with a colon (I was trying to use a datetime plus some other things) it was just failing silently with null. I did some research and found that colons are disallowed.I think one good option is for FileSaver to throw an exception. (Perhaps an
InvalidFileNameException
)Alternatively, the dialog can still open with the illegal characters, and windows itself will complain when you press the save button (I have tried this and it does complain)