Example #1
0
 public function __construct()
 {
     // 2Mb. After being b64-encoded twice, this is ~ 3.7Mb = 113 seconds on 32Kb/s uplink
     $this->default_chunk_size = defined('UPDRAFTPLUS_REMOTESEND_DEFAULT_CHUNK_BYTES') && is_numeric(UPDRAFTPLUS_REMOTESEND_DEFAULT_CHUNK_BYTES) && UPDRAFTPLUS_REMOTESEND_DEFAULT_CHUNK_BYTES >= 16384 ? UPDRAFTPLUS_REMOTESEND_DEFAULT_CHUNK_BYTES : 2097152;
     # 3rd parameter: chunking? 4th: Test button?
     parent::__construct('remotesend', 'Remote send', false, false);
 }
Example #2
0
 public function __construct()
 {
     # 3rd parameter: chunking? 4th: Test button?
     parent::__construct('onedrive', 'OneDrive', false, false);
     add_filter('updraft_onedrive_action_auth', array($this, 'action_auth'));
     if (defined('UPDRAFTPLUS_UPLOAD_CHUNKSIZE') && UPDRAFTPLUS_UPLOAD_CHUNKSIZE > 0) {
         $this->chunk_size = max(UPDRAFTPLUS_UPLOAD_CHUNKSIZE, 320 * 1024);
     }
 }
Example #3
0
 public function __construct()
 {
     # 3rd parameter: chunking? 4th: Test button?
     parent::__construct('copycom', 'Copy.Com', true, false);
     add_filter('updraft_copycom_action_auth', array($this, 'action_auth'));
     if (defined('UPDRAFTPLUS_UPLOAD_CHUNKSIZE') && UPDRAFTPLUS_UPLOAD_CHUNKSIZE > 0) {
         $this->chunk_size = UPDRAFTPLUS_UPLOAD_CHUNKSIZE;
     }
 }
Example #4
0
 public function __construct()
 {
     # 3rd parameter: chunking? 4th: Test button?
     $this->storage_classes = array('STANDARD' => __('Standard', 'updraftplus'), 'DURABLE_REDUCED_AVAILABILITY' => __('Durable reduced availability', 'updraftplus'), 'NEARLINE' => __('Nearline', 'updraftplus'));
     $this->bucket_locations = array('US' => __('United States', 'updraftplus') . ' (' . __('multi-region location', 'updraftplus') . ')', 'ASIA' => __('Asia Pacific', 'updraftplus') . ' (' . __('multi-region location', 'updraftplus') . ')', 'EU' => __('European Union', 'updraftplus') . ' (' . __('multi-region location', 'updraftplus') . ')', 'us-central1' => __('Central United States', 'updraftplus') . ' (1)', 'us-east1' => __(' Eastern United States', 'updraftplus') . ' (1)', 'us-central2' => __('Central United States', 'updraftplus') . ' (2)', 'us-east2' => __('Eastern United States', 'updraftplus') . ' (2)', 'us-east3' => __('Eastern United States', 'updraftplus') . ' (3)', 'us-west1' => __('Western United States', 'updraftplus') . ' (1)', 'asia-east1' => __('Eastern Asia-Pacific', 'updraftplus') . ' (1)', 'europe-west1' => __('Western Europe', 'updraftplus') . ' (1)');
     parent::__construct('googlecloud', 'Google Cloud Storage', true, true);
     add_filter('updraft_googlecloud_action_auth', array($this, 'action_auth'));
     if (defined('UPDRAFTPLUS_UPLOAD_CHUNKSIZE') && UPDRAFTPLUS_UPLOAD_CHUNKSIZE > 0) {
         $this->chunk_size = max(UPDRAFTPLUS_UPLOAD_CHUNKSIZE, 512 * 1024);
     }
 }
Example #5
0
 public function __construct()
 {
     # 3rd parameter: chunking? 4th: Test button?
     parent::__construct('remotesend', 'Remote send', false, false);
 }