Added check to make sure file upload was not cancelled during prechunk
function call.