Fix upload rules.