set upload attributes