optimize upload settings