First do sanity checking, and THEN push and upload