Difference between #5 and #6 of
Multiple files uploader with CMultiFileUpload

Revision #6 has been created by Kostas Apazidis (KonApaz) on Nov 18, 2014, 12:37:30 PM with the memo:

using model and attribute instead name
« previous (#5) next (#7) »

Changes

Title unchanged

Multiple files uploader with CMultiFileUpload

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

File upload, CMultiFileUpload

Content changed

[...]
if (isset($_POST['Photo'])) {

$model->attributes = $_POST['Photo'];

$photos = CUploadedFile::getInstancesByName('
Photo[photos]');

// proceed if the images have been set
if (isset($photos) && count($photos) > 0) {

// go through each uploaded image
[...]
5 0
8 followers
Viewed: 282 053 times
Version: 1.1
Category: How-tos
Written by: Interboy
Last updated by: samdark
Created on: Sep 27, 2013
Last updated: 5 years ago
Update Article

Revisions

View all history