views:

68

answers:

1

Hi, All

I need user download JPEG file from my app, however, when user change the file name the saved file will be downloaded without extension.

For Example: I am using FileReference.download() and set the default filename as "demoPic.jpg" and user's windows system setting control file extension not being shown. So when the dialog opens a download window, only "demoPic" shown as the filename. If user saved file without changing filename, the saved file will be OK. But if user change file name, the download file will be saved without extension. is it possible to add file extension to filename when user forget it by flex code?

Any help are welcome.

thanks xuchen

A: 

I have the same problem and was not able to fix it until now. It seems it is a problem with flash + windows. :( sorry to inform but I did not found any fix.

If this can be called a workaround, is somehow to warn users and ask them to place also the extension when they rename the file.

Adrian Pirvulescu
Thank you for your reply,Pirvulescu. What I can do is adding a check here, and warning user to input whole file name with extension. I'm looking for a more comfortable way that automatically adding file extension. Can someone suggest how this can be done?
xuchen