fix fileattachment for non image