From: Steve Sutton Date: Wed, 21 Jun 2017 20:46:42 +0000 (-0400) Subject: WIP for validate photo file X-Git-Tag: v2.10.0^2~11^2~15 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=0f3ef79825c9ac9e6cf11df018edaee21ce80786;p=WP-Plugins%2Fglm-member-db.git WIP for validate photo file working on the upload for photo file. --- 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 ) . '
';