From 0f3ef79825c9ac9e6cf11df018edaee21ce80786 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 21 Jun 2017 16:46:42 -0400 Subject: [PATCH] WIP for validate photo file working on the upload for photo file. --- models/admin/import/index.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/models/admin/import/index.php b/models/admin/import/index.php index 560d5ac3..902053c7 100644 --- a/models/admin/import/index.php +++ b/models/admin/import/index.php @@ -376,6 +376,15 @@ class GlmMembersAdmin_import_index $view = 'processMembers.html'; break; + case 'photosValidate': + if ( isset( $_FILES ) ) { + move_uploaded_file( $_FILES['photos_file']['tmp_name'], $uploadPath . '/photoData.csv' ); + } + // validate the header line + $fData = $this->readCSVFileHeaders( $uploadPath . '/photoData.csv' ); + + break; + case 'photos': $view= 'photos.html'; $fileData = '
$_FILES: ' . print_r( $_FILES, true ) . '
'; -- 2.17.1