Fixed setting file attributes to use 1 request instead of 2