Skip to content
Snippets Groups Projects
Commit 505aa78f authored by Kevin Kaland's avatar Kevin Kaland
Browse files

Fix files getting cleaned.

parent e3069541
No related branches found
No related tags found
No related merge requests found
......@@ -215,6 +215,7 @@ class FillPdfOverviewForm extends FillPdfAdminFormBase {
// based off that.
/** @var \Drupal\file\FileInterface $file */
$file = $form_state->getValue('upload_pdf');
$file->setPermanent();
$file->save(); // Save the file so we can get an fid
$fillpdf_form = FillPdfForm::create(array(
......@@ -246,4 +247,4 @@ class FillPdfOverviewForm extends FillPdfAdminFormBase {
drupal_set_message($this->t("No fields detected in PDF. Are you sure it contains editable fields?"), 'warning');
}
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment