Currently when we save, e.g. a GIF, we auto-populate the file chooser with .gif. This runs a risk of including a character that is disallowed in filenames.
Linux doesn't allow / in filenames, and using a filename with / in Juggling Lab causes an internal error. Also filenames starting with . indicate hidden files, which may cause confusion. Solution:
Replace all characters / with :
Remove any leading .
macOS doesn't allow / in filenames, however, any : in a filename is shown in Finder (and open dialogs) as /, and within the Finder it is disallowed to create a filename containing :. Solution:
Remove all :
Replace all / with :
Remove any leading .
Windows doesn't allow \/?:*"><| in filenames. Additionally filenames cannot end in space or .. Lastly, the following filenames are reserved and cannot be used: CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9. Solution:
Remove all \/?:*"
If the filename contains ><|, or equals one of the reserved names above, replace filename with Pattern
Currently when we save, e.g. a GIF, we auto-populate the file chooser with.gif. This runs a risk of including a character that is disallowed in filenames.
Linux doesn't allow
/
in filenames, and using a filename with/
in Juggling Lab causes an internal error. Also filenames starting with.
indicate hidden files, which may cause confusion. Solution:/
with:
.
macOS doesn't allow
/
in filenames, however, any:
in a filename is shown in Finder (and open dialogs) as/
, and within the Finder it is disallowed to create a filename containing:
. Solution::
/
with:
.
Windows doesn't allow
\/?:*"><|
in filenames. Additionally filenames cannot end in space or.
. Lastly, the following filenames are reserved and cannot be used: CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9. Solution:\/?:*"
><|
, or equals one of the reserved names above, replace filename withPattern