| @@ -12,21 +12,29 @@ | ||
| 12 | 12 | self::$constants = [ |
| 13 | 13 | 'S3_MULTIPART_MIN_FILE_SIZE' => 5242880, |
| 14 | 14 | 'GCLOUD_MULTIPART_MIN_FILE_SIZE' => 5242880, |
| 15 | 15 | 'DOCEAN_MULTIPART_MIN_FILE_SIZE' => 5242880, |
| 16 | + 'CLOUDFLARE_R2_MULTIPART_MIN_FILE_SIZE' => 5242880, | |
| 17 | + 'S3COMPATIBLE_MULTIPART_MIN_FILE_SIZE' => 5242880, | |
| 16 | 18 | 'CACHE_GROUP' => WPMCS_TOKEN.'_cache_group', |
| 17 | 19 | 'CACHE_EXPIRE' => 24*60*60, |
| 18 | 20 | 'META_KEY' => WPMCS_TOKEN.'_meta_data', |
| 19 | 21 | 'CONTENT_META_KEY' => WPMCS_TOKEN.'_post_meta_data', |
| 20 | 22 | 'GLOBAL_SETTINGS_KEY' => WPMCS_TOKEN.'_global_settings', |
| 23 | + 'FILE_MANAGER_SETTINGS_KEY' => WPMCS_TOKEN.'_file_manager_settings', | |
| 24 | + 'BTB_DESTINATION_KEY' => WPMCS_TOKEN.'_btb_destination', | |
| 25 | + 'BG_RUNNER_SETTINGS_KEY' => WPMCS_TOKEN.'_bg_runner_settings', | |
| 26 | + 'STATUS_KEY' => WPMCS_TOKEN.'_status_data', | |
| 21 | 27 | 'COUNTER_KEY' => WPMCS_TOKEN.'_counter_data', |
| 22 | 28 | 'UPLOADS' => WPMCS_TOKEN.'_uploads' |
| 23 | 29 | ]; |
| 24 | 30 | |
| 25 | 31 | self::$service_labels = [ |
| 26 | - 's3' => esc_html__('AWS/S3', 'media-cloud-sync'), | |
| 27 | - 'gcloud' => esc_html__('Google Cloud Storage', 'media-cloud-sync'), | |
| 28 | - 'docean' => esc_html__('Digital Ocean Spaces', 'media-cloud-sync') | |
| 32 | + 's3' => esc_html__('AWS/S3', 'media-cloud-sync'), | |
| 33 | + 'gcloud' => esc_html__('Google Cloud Storage', 'media-cloud-sync'), | |
| 34 | + 'docean' => esc_html__('Digital Ocean Spaces', 'media-cloud-sync'), | |
| 35 | + 'cloudflareR2' => esc_html__('Cloudflare R2', 'media-cloud-sync'), | |
| 36 | + 's3compatible' => esc_html__('S3 Compatible', 'media-cloud-sync') | |
| 29 | 37 | ]; |
| 30 | 38 | } |
| 31 | 39 | |
| 32 | 40 | /** |
| @@ -42,4 +50,6 @@ | ||
| 42 | 50 | public static function getServiceLabels($key, $default = false) { |
| 43 | 51 | return isset(self::$service_labels[$key]) ? self::$service_labels[$key] : $default; |
| 44 | 52 | } |
| 45 | 53 | } |
| 54 | +// Initialize on load time to handle missing constant redeclaration | |
| 55 | +Schema::init(); | |