The hash of the data is computed while uploading, and
if the resulting object has a different hash, an attempt is made to delete the object.
Whether the deletion fails or not, an UploadValidationException
is thrown. If the deletion fails, that failure can be examined via
AdditionalFailures
None
The upload is not validated.
ThrowOnly
The hash of the data is computed while uploading, and
if the resulting object has a different hash, an UploadValidationException
is thrown, but the object remains present in Storage.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page details the \u003ccode\u003eUploadValidationMode\u003c/code\u003e enum within the \u003ccode\u003eGoogle.Cloud.Storage.V1\u003c/code\u003e namespace, part of the \u003ccode\u003eGoogle.Cloud.Storage.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version documented here is 4.11.0, with older versions listed down to 3.4.0, each linking to its respective documentation.\u003c/p\u003e\n"],["\u003cp\u003eThere are three validation modes described: \u003ccode\u003eDeleteAndThrow\u003c/code\u003e, which attempts to delete the object upon hash mismatch and always throws an exception; \u003ccode\u003eNone\u003c/code\u003e, which skips validation; and \u003ccode\u003eThrowOnly\u003c/code\u003e, which throws an exception on hash mismatch but does not attempt deletion.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeleteAndThrow\u003c/code\u003e validation mode can provide further information about failures through the \u003ccode\u003eAdditionalFailures\u003c/code\u003e property of the \u003ccode\u003eUploadValidationException\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eEach version provides documentation for the \u003ccode\u003eUploadValidationMode\u003c/code\u003e enum, accessible through links that correspond to the version numbers.\u003c/p\u003e\n"]]],[],null,[]]