request.setGsBucketName(uploadOptions.getGoogleStorageBucketName());
}
byte[] responseBytes;
try {
responseBytes = ApiProxy.makeSyncCall(PACKAGE, "CreateUploadURL", request.toByteArray());
} catch (ApiProxy.ApplicationException ex) {
switch (BlobstoreServiceError.ErrorCode.valueOf(ex.getApplicationError())) {
case URL_TOO_LONG:
throw new IllegalArgumentException("The resulting URL was too long.");
case INTERNAL_ERROR: