Added an assertion for uploadPart.