fix(upload): fix error handling on upload

SD-324