}
}
+ if($this->mimetype == 'application/pdf'){
+ $this->no_of_pages = $this->getNumberOfPage($file);
+ }
+
$this->filesize = filesize($file);
$this->created = date('Y-m-d H:i:s');
return $base64;
}
- function getNumberOfPages()
- {
- $ret = 0;
-
- switch ($this->mimetype) {
- case 'application/pdf' :
- break;
- default :
- break;
- }
-
- return $ret;
- }
-
}