updated for new file attachment type change