fixd typo that caused the upload to skip the rest api