$file = $_FILES['upload']; $cfile = new CFile(); $cfile->upload($file['tmp_name'], $file['name'], $file['type'], $file['size']);
$cfile = new CFile(); $fileData = $cfile->retrieve($id); // where id is the unique id of the file in the database header('Content-type: '.$fileData['type']); echo $fileData['data'];
$cfile = new CFile(); $cfile->delete($id); // where id is the unique id of the file in the databaseThis package library appears to be a custom implementation written by a developer or team of developers, as there is no widely-known package or library with the exact name "CFile store."