From 5091abe1e315c7dcea91ecb58416457293b7569c Mon Sep 17 00:00:00 2001 From: Laetitia Fesselier Date: Mon, 5 Jun 2023 17:30:33 -0400 Subject: [PATCH] [EEG Uploader] Handle Checksum value --- modules/electrophysiology_uploader/php/upload.class.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/electrophysiology_uploader/php/upload.class.inc b/modules/electrophysiology_uploader/php/upload.class.inc index 7d55372ae76..373564681da 100644 --- a/modules/electrophysiology_uploader/php/upload.class.inc +++ b/modules/electrophysiology_uploader/php/upload.class.inc @@ -46,7 +46,7 @@ class Upload extends \NDB_Page // Ensure GET or POST request. switch ($request->getMethod()) { case 'GET': - return $this->_handleGet($request); + return $this->_handleGET($request); case 'POST': return $this->_handlePOST($request); default: @@ -63,7 +63,7 @@ class Upload extends \NDB_Page * * @return ResponseInterface */ - private function _handleGet(ServerRequestInterface $request) : ResponseInterface + private function _handleGET(ServerRequestInterface $request) : ResponseInterface { $qParams = $request->getQueryParams(); if (!isset($qParams['upload_id'])) { @@ -244,6 +244,7 @@ class Upload extends \NDB_Page 'UploadDate' => date('Y-m-d H:i:s'), 'UploadLocation' => "$filename", 'SessionID' => $session['ID'], + 'Checksum' => $values['checksum'] ?? null, ]; $db->insert('electrophysiology_uploader', $saveValues);