Yes, I suspect it is. I suspect you are closing the reply at the first sign of progress. Print the value of total in handleUploadProgress.