Skip to content

Commit

Permalink
fix(slb-495): set file as permanent dropzonejs upload
Browse files Browse the repository at this point in the history
  • Loading branch information
dspachos committed Dec 18, 2024
1 parent eaca85a commit 29aa448
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 29aa448

Please sign in to comment.