fix attachment uploader for aws