Revision #10 has been created by pc131 on Nov 3, 2010, 8:47:00 PM with the memo:
fff
« previous (#9) next (#11) »
Changes
Title
unchanged
Saving files to a blob field in the database
Category
unchanged
Tips
Yii version
unchanged
Tags
unchanged
File upload
Content
changed
[...]
header('Pragma: public');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Content-Transfer-Encoding: binary');
header('Content-length: '.$model->cv_file_size);
header('Content-Type: '.$model->
cv_file_type);
header('Content-Disposition: attachment; filename='.$model->
cvfile_name);
echo $model->
cv_file_content;
}
```
Note *$_GET\['id'\]* as passed argument of loadModel function.