Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[EEG Uploader] Handle Checksum value #8729

Merged
merged 1 commit into from
Jun 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions modules/electrophysiology_uploader/php/upload.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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'])) {
Expand Down Expand Up @@ -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);
Expand Down