This commit is contained in:
2020-02-20 21:43:46 -05:00
parent e574340a61
commit 8443a78378
+19 -4
View File
@@ -220,11 +220,26 @@ class Member extends Member_Controller {
// $this->renderMemberPages('view_mycalendar', $data); // $this->renderMemberPages('view_mycalendar', $data);
} }
public function upload() {
public function upload(){
if (isset($_POST['uploadBtn']) && $_POST['uploadBtn'] == 'Upload') {
if (isset($_FILES['uploadedFile']) && $_FILES['uploadedFile']['error'] === UPLOAD_ERR_OK) {
// get details of the uploaded file
$fileTmpPath = $_FILES['uploadedFile']['tmp_name'];
$fileName = $_FILES['uploadedFile']['name'];
$fileSize = $_FILES['uploadedFile']['size'];
$fileType = $_FILES['uploadedFile']['type'];
$fileNameCmps = explode(".", $fileName);
$fileExtension = strtolower(end($fileNameCmps));
print_r($_FILES);
}
}
} }
public function mycalendar() { public function mycalendar() {
$data = array(); $data = array();
$this->renderMemberPages('view_mycalendar', $data); $this->renderMemberPages('view_mycalendar', $data);