Comparing
#5 with
#6
Revision #6 was created by
Kostas Apazidis (KonApaz) on Nov 18, 2014, 12:37:30 PM.
using model and attribute instead name
Content
[...]
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[...]