0 Replies Latest reply on Mar 9, 2010 9:27 AM by Rash12680

    File save issue

    Rash12680

      Is there a way to set a default extension when saving an image using  FileReference save method?

      Code:
      var fileReference:FileReference = new FileReference();
      fileReference.save( pngData, "image.png" );

      Problem:


      If windows is set to "hide known file extensions",
      only image without extension will be displayed in save dialog.
      File type is "*.*".
      Some of my users hat the great idea to add .jpg extension in filename,  because they couldn't see one.
      So file was saved broken as image.jpg.