Skip to content

Commit

Permalink
Update multipart_upload_threshold hook
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoPino committed Jul 1, 2024
1 parent 302e933 commit 5aee2f7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions strawberryfield.install
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,16 @@ function strawberryfield_update_9102() {
}
}
}

/**
* Update multipart_upload_threshold
*
*/
function strawberryfield_update_9103() {
$storage_settings = \Drupal::configFactory()->getEditable('strawberryfield.storage_settings');
$multipart_upload_threshold = $storage_settings->get('multipart_upload_threshold');
if (!$multipart_upload_threshold) {
$storage_settings->set('multipart_upload_threshold', 5368709120);
$storage_settings->save(TRUE);
}
}

0 comments on commit 5aee2f7

Please sign in to comment.