Difference between #9 and #10 of
Saving files to a blob field in the database

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.
6 2
17 followers
Viewed: 80 819 times
Version: 1.1
Category: Tips
Written by: zaccaria
Last updated by: zaccaria
Created on: Nov 3, 2010
Last updated: 14 years ago
Update Article

Revisions

View all history