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-08 UTC."],[[["The latest version of the Google Cloud Storage v1 API documentation for `UploadValidationMode` is 4.11.0, and the documentation covers multiple previous versions."],["`UploadValidationMode` is an enum within the `Google.Cloud.Storage.V1` namespace, used to define how data upload validation should be handled."],["There are three different fields for the `UploadValidationMode` enum: `DeleteAndThrow`, `None`, and `ThrowOnly`, each offering different strategies for validation."],["The `DeleteAndThrow` validation mode computes the data hash during upload and attempts to delete the object if the hash is different, then throws an `UploadValidationException`, where additional failure details can be accessed."],["The `ThrowOnly` validation mode computes the data hash and throws an `UploadValidationException` if the resulting object has a different hash, but the object remains present."]]],[]]