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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-17 UTC."],[[["The `UploadValidationMode` enum in the Google Cloud Storage v1 API defines how data upload validation is handled."],["The latest version of the documentation is 4.11.0, and it includes information for versions down to 3.4.0."],["There are three validation modes available: `DeleteAndThrow`, which deletes the object and throws an exception upon a hash mismatch; `None`, which skips validation; and `ThrowOnly`, which throws an exception but keeps the object if the hashes don't match."],["This documentation is specific to the `Google.Cloud.Storage.V1` namespace within the .NET environment."],["The `DeleteAndThrow` validation method can also reveal deletion failures through the `AdditionalFailures` property in the exception."]]],[]]