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-03-21 UTC."],[[["This page details the `UploadValidationMode` enum within the `Google.Cloud.Storage.V1` namespace, part of the `Google.Cloud.Storage.V1.dll` assembly."],["The latest version documented here is 4.11.0, with older versions listed down to 3.4.0, each linking to its respective documentation."],["There are three validation modes described: `DeleteAndThrow`, which attempts to delete the object upon hash mismatch and always throws an exception; `None`, which skips validation; and `ThrowOnly`, which throws an exception on hash mismatch but does not attempt deletion."],["The `DeleteAndThrow` validation mode can provide further information about failures through the `AdditionalFailures` property of the `UploadValidationException`."],["Each version provides documentation for the `UploadValidationMode` enum, accessible through links that correspond to the version numbers."]]],[]]