check ret code when uploading