Alternative to locking file type on FileReference.save() AS3
Update: As discussed in Jacob's reply below, limiting or correcting the behaviour of FileReference.save isn't possible. Can anyone suggest an alternative (server is Apache/PHP) that matches all of my criteria from this post and avoids the pitfalls I discussed with Jacob? End edit I'm saving an image from my AS3 app using FileReference.save(). This is the code, which works fine: var encoder:JPGEncoder = new JPGEncoder(80); var byteData = encoder.encode(myBMD); //bitmap data object created earlier var file:FileReference = new FileReference(); file.save(byteData, "myImage.jpg"); This opens up the