Difference between #4 and #5 of
How to upload image(photo), and path entry in database with update functionality

Revision #5 has been created by kmindi on Jul 14, 2012, 8:13:41 PM with the memo:

adds multipart/form-data
« previous (#4) next (#6) »

Changes

Title unchanged

How to upload image(photo), and path entry in database with update functionality

Category unchanged

Tips

Yii version unchanged

Tags unchanged

Image upload, image upload with database entry, image update, photo upload

Content changed

[...]
_form.php file:


```php
..
..
 
//form options array...
 
'htmlOptions' => array(
 
'enctype' => 'multipart/form-data',
 
),
 
...
 
..
 
//
Other elements
..
..
<div class="row">
<?php echo $form->labelEx($model,'image'); ?>
<?php echo CHtml::activeFileField($model, 'image'); ?> // by this we can upload image
[...]
13 0
39 followers
Viewed: 182 112 times
Version: 1.1
Category: Tips
Written by: kiran sharma
Last updated by: Shahcheraghean
Created on: Jul 6, 2012
Last updated: 4 years ago
Update Article

Revisions

View all history