Form->create($productPhoto, ['type' => 'file']) ?>
element('ProductPhotos/form', ['includeFile' => true]); ?>
Form->button(__('Submit')) ?> Form->end() ?>