Unable to upload excel and pdf format as attachments