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 page provides reference documentation for the `UploadValidationMode` enum within the Google Cloud Storage v1 API."],["The latest version documented is 4.11.0, with versions ranging from 4.11.0 down to 3.4.0 being documented, demonstrating the progression of this API component over multiple versions."],["`UploadValidationMode` controls the validation behavior when uploading data to Google Cloud Storage, as documented."],["The enum offers three validation options: `None` where no validation is done, `ThrowOnly` where an `UploadValidationException` is thrown if the hash differs, but the object stays, and `DeleteAndThrow` where an attempt to delete an invalid object is done in addition to throwing the exception."]]],[]]