write error on upload