Sets the maximum size in bytes for any one blob in the upload. If any blob
in the upload exceeds this value then a 413 error will be returned to the
client.
[[["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-09-04 UTC."],[[["\u003cp\u003e\u003ccode\u003eUploadOptions\u003c/code\u003e allows customization of individual uploads to the \u003ccode\u003eBlobstoreService\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis class provides methods to set and retrieve the maximum upload size for the entire upload and for individual blobs.\u003c/p\u003e\n"],["\u003cp\u003eIt includes methods to manage the Google Storage bucket name associated with the upload.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUploadOptions\u003c/code\u003e inherits methods like \u003ccode\u003eequals\u003c/code\u003e, \u003ccode\u003ehashCode\u003c/code\u003e, and \u003ccode\u003etoString\u003c/code\u003e from the base \u003ccode\u003eObject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eMethods such as \u003ccode\u003ehasGoogleStorageBucketName\u003c/code\u003e, \u003ccode\u003ehasMaxUploadSizeBytes\u003c/code\u003e, and \u003ccode\u003ehasMaxUploadSizeBytesPerBlob\u003c/code\u003e can determine if certain upload parameters have been set.\u003c/p\u003e\n"]]],[],null,["# Class UploadOptions (2.0.0)\n\n public final class UploadOptions\n\nAllows users to customize the behavior of a single upload to the\n[BlobstoreService](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.blobstore.ee10.BlobstoreService). \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e UploadOptions \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nMethods\n-------\n\n### equals(@Nullable Object object)\n\n public boolean equals(@Nullable Object object)\n\n**Overrides** \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-)\n\n### getGoogleStorageBucketName()\n\n public String getGoogleStorageBucketName()\n\n### getMaxUploadSizeBytes()\n\n public long getMaxUploadSizeBytes()\n\n### getMaxUploadSizeBytesPerBlob()\n\n public long getMaxUploadSizeBytesPerBlob()\n\n### googleStorageBucketName(String bucketName)\n\n public UploadOptions googleStorageBucketName(String bucketName)\n\n### hasGoogleStorageBucketName()\n\n public boolean hasGoogleStorageBucketName()\n\nDetermines if the storage bucket is set.\n\n### hasMaxUploadSizeBytes()\n\n public boolean hasMaxUploadSizeBytes()\n\nDetermines if the maximum size is set.\n\n### hasMaxUploadSizeBytesPerBlob()\n\n public boolean hasMaxUploadSizeBytesPerBlob()\n\nDetermines if the maximum upload size per blob is set.\n\n### hashCode()\n\n public int hashCode()\n\n**Overrides** \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--)\n\n### maxUploadSizeBytes(long maxUploadSizeBytes)\n\n public UploadOptions maxUploadSizeBytes(long maxUploadSizeBytes)\n\nSets the maximum size in bytes that for the total upload. If the upload\nexceeds this value then a 413 error will be returned to the client.\n\n### maxUploadSizeBytesPerBlob(long maxUploadSizeBytesPerBlob)\n\n public UploadOptions maxUploadSizeBytesPerBlob(long maxUploadSizeBytesPerBlob)\n\nSets the maximum size in bytes for any one blob in the upload. If any blob\nin the upload exceeds this value then a 413 error will be returned to the\nclient.\n\n### toString()\n\n public String toString()\n\n**Overrides** \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--)"]]