scratchfoundation / scratch-flash

Open source version of the Scratch 2.0 project editor. This is the basis for the online and offline versions of Scratch found on the website.
https://scratch.mit.edu
GNU General Public License v2.0
1.33k stars 513 forks source link

Saving a costume to file omits file extension #1306

Closed gunchleoc closed 7 years ago

gunchleoc commented 7 years ago

To reproduce:

This will create a file without extension, which is a problem for Windows users. The editor should automatically add the png/svg file extensions if they haven't been specified by the user, avoiding accidentally creating duplicate file endings like .png.png or .PNG.png in the process.

cwillisf commented 7 years ago

Unfortunately this is a limitation of Flash: depending on the version of Flash you're using the dialog may or may not enforce the file extension. We're providing Flash as much information as we can through the current API.

For example, this is what it looks like on my system. If I just type in "foo" (with no extension) and click "Save" then I end up with "foo.svg" in this case.

image