fixed a compile warning in unbuffered upload.