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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe page provides reference documentation for the \u003ccode\u003eUploadValidationMode\u003c/code\u003e enum within the Google Cloud Storage v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe 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.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUploadValidationMode\u003c/code\u003e controls the validation behavior when uploading data to Google Cloud Storage, as documented.\u003c/p\u003e\n"],["\u003cp\u003eThe enum offers three validation options: \u003ccode\u003eNone\u003c/code\u003e where no validation is done, \u003ccode\u003eThrowOnly\u003c/code\u003e where an \u003ccode\u003eUploadValidationException\u003c/code\u003e is thrown if the hash differs, but the object stays, and \u003ccode\u003eDeleteAndThrow\u003c/code\u003e where an attempt to delete an invalid object is done in addition to throwing the exception.\u003c/p\u003e\n"]]],[],null,[]]