public function preview($path) { // Calculate the Preview file path. $path = str_replace('/', DS, ROOTDIR . ltrim($path, '/')); return $this->serveFile($path); }