Set the right extension on saving an attachment
Merge pull request #376 from meskio/extension_saving_attachment

Set the right extension on saving an attachment