Gcloud::Upload

Upload Settings

Upload allows users to configure how files are uploaded to the Google Cloud Service APIs.

require "gcloud/upload"

# Set the default threshold to 10 MiB.
Gcloud::Upload.resumable_threshold = 10_000_000

Methods

Public Class Methods

resumable_threshold()

Retrieve resumable threshold. If uploads are larger in size than this value then resumable uploads are used.

The default value is 5 MiB (5,000,000 bytes).

resumable_threshold=(new_resumable_threshold)

Sets a new resumable threshold value.