Preserve the temporary file on failed buffered uploads
To make it easier to investigate failures, only delete the temporary file if the upload succeeds. If it fails, dump extra details about the error.
To make it easier to investigate failures, only delete the temporary file if the upload succeeds. If it fails, dump extra details about the error.