(refactor) Move redirect to success callback for AWS upload