Fix upload when enable optimal site