Skip to content

Commit 2af487c

Browse files
committed
refactor: nome file caricato in upload
1 parent 6c89d0e commit 2af487c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/functions.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,11 @@ function translateTemplate()
247247
OperationLog::setInfo('id_plugin', $id_plugin);
248248
OperationLog::setInfo('id_record', $id_record);
249249

250+
// Aggiunta del nome del file per l'operazione di upload
251+
if ($op === 'upload' && !empty($_FILES['blob']['name'])) {
252+
OperationLog::setInfo('options', json_encode(['filename' => $_FILES['blob']['name']]));
253+
}
254+
250255
OperationLog::build($op);
251256
}
252257

0 commit comments

Comments
 (0)