Add support for saving AJAX attachments