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 latest version available for `UploadValidationMode` in the Google Cloud Storage .NET library is 4.11.0."],["`UploadValidationMode` is an enum that defines how data upload validation is handled within the `Google.Cloud.Storage.V1` namespace."],["There are three different modes for `UploadValidationMode`: `DeleteAndThrow`, `None`, and `ThrowOnly`, each with a distinct approach to managing hash discrepancies."],["`DeleteAndThrow` mode will attempt to delete an object if it's hash doesn't match, and regardless of deletion success, will throw an `UploadValidationException`."],["`ThrowOnly` mode will throw an `UploadValidationException` if the hash does not match, but will not attempt to delete the uploaded object."]]],[]]