Ahora borra el documento tras procesarlo y borra los documentos que se generan el proceso

This commit is contained in:
Alejandro Tasistro 2021-11-28 21:42:24 -03:00
parent 21d9380db0
commit 60c58b56b1
12 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,11 @@ class Librilladora extends Model {
for ($i = 0; $i < $cantBooklets; $i++)
array_push($fileNames, 'uploads/librillo-'.$i."-".$fileName);
$this->mergePDFFiles($fileNames);
File::delete($file);
for ($i = 0; $i < count($fileNames); $i++) {
File::delete('uploads/librillo-'.$i."-".$fileName);
File::delete('uploads/'.$i."-".$fileName);
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.