Fix for upload attachments with ajax-submit