Set attributes when sending files