diff --git a/packages/drupal/silverback_ai/modules/silverback_ai_import/silverback_ai_import.module b/packages/drupal/silverback_ai/modules/silverback_ai_import/silverback_ai_import.module index 2e6153861..7eab032f9 100644 --- a/packages/drupal/silverback_ai/modules/silverback_ai_import/silverback_ai_import.module +++ b/packages/drupal/silverback_ai/modules/silverback_ai_import/silverback_ai_import.module @@ -118,6 +118,7 @@ function _silverback_ai_import_form_submit(array $form, FormStateInterface $form 'status' => 1, 'uid' => \Drupal::currentUser()->id() ?? 1, ]); + $file->setPermanent(); $file->save(); if ($file && $type == 'docx') {